Skip to content

Commit

Permalink
changed adc_init order
Browse files Browse the repository at this point in the history
  • Loading branch information
microresearch committed Dec 30, 2016
1 parent 234fb49 commit 46c9f0e
Showing 1 changed file with 5 additions and 36 deletions.
41 changes: 5 additions & 36 deletions erdsir_wormversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,9 @@ dogma we no longer believe. [Antonin Artaud]
Returning the body, electronics, and dystopic code to the earth,
revived and decoded years later as "yersinia pestis".
///////////////////////////////////////////////////////////////////////
New version October 28 2016+
1- is this the RIGHT old version - based on erdsir.c - TODO: check hex dump against this compiled
NO they don't match with the one SIR we have dumped with avrdude - so code is
wrong/different OR makefile is different OR avr-gcc version differs (4.7.2 on t60) - TEST how it sounds...
or SIR we have HAD wrong code????
CHECK this at home with x60 but assume this code is correct!
___ 18/12/2016
erdsir.c and hex matches x60 microbdinterp.c/hex (maybe just use this one and ignore hexdumps)
////
- updates TODO:
2- latest mytm.c code in plague code replaces last mutate!
- do we have enough memory?
- should it not be in CPUs?
void (*plag[])(unsigned char* cells) = {mutate,SIR,hodge,cel,life,inc,shift,chunk,runwire,runhodge,runfire,runkrum,runhodgenet,runlife,runcel,mutate};
3- test plague set// CPUs on laptop
4- worming in sin/cos lookup as movement options in plague TO SET - where?
///////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
// SIR 2016 re-issue with some tweaks and new Turing Machine implementation.
////////////////////////////////////////////////////////////////////////////
LAYOUT:
Expand Down Expand Up @@ -1538,6 +1507,7 @@ unsigned char dirout(unsigned char* cells, unsigned char IP){
void main(void)
{
unsigned char cpu, plague;
adc_init();
srand(randi());

#else
Expand Down Expand Up @@ -1590,7 +1560,6 @@ void main(int argc, char *argv[])
}

#ifdef AVR_IS
adc_init();
DDRD=0x40; // 6 as out
cli();//stop interrupts
TCCR0A=(1<<COM0A1) | (1<<WGM01) | (1<<WGM00); // fast PWM
Expand All @@ -1612,7 +1581,7 @@ void main(int argc, char *argv[])
#else
cpuspeed=1;plaguespeed=1;speed=1;
#endif
// cpu=9;
cpu=14;

// TESTING:
// plague=2;cpu=0;
Expand Down

0 comments on commit 46c9f0e

Please sign in to comment.