??? 03/08/04 11:21 Read: times |
#66233 - RE: Counting events Responding to: ???'s previous message |
hi
What i'v done is loaded a value in the accumalator and then decrementing(DJNZ instruction) it and then jump to the sequence i want to repeat, but each time the program comes back to this it loads the accumalator again and puts it in an continuous loop. Is there a way that i can correct this problem so that the accumalator does not get loaded with this value again when i return to this function. Here is what i have: mov a,#02d DJNZ ACC,REGISTER2 ret it must repeat the sequence twice and return when done, so it must come back to this part, but like i said and as you can see it will load #2 in the accumalator every time. So how can i correct this? |
Topic | Author | Date |
Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events | 01/01/70 00:00 | |
RE: Counting events![]() | 01/01/70 00:00 |