| ??? 09/05/08 17:11 Read: times |
#157984 - also may, some day, bite you in your lagest muscle Responding to: ???'s previous message |
ORG 000BH ;INTERRUPT ROUTINE FOR TIMER0
CALL TOV
TOV:
CLR TRO ;????????
MOV TL0,R0
MOV TH0,R1
SETB TR0 ;????????
RETI
Using registers as a "transfer medium" between the main (yes, even assmbler code has a main - whatever it is called) will, very likely, get you caught some day. Little shortcuts "just for test" has a way of sneaking their way into a final code and then may, some day, bite you in your lagest muscle. Erik |
| Topic | Author | Date |
| Auto reload | 01/01/70 00:00 | |
| See any potential problems? | 01/01/70 00:00 | |
| Enable interrupts last | 01/01/70 00:00 | |
| RE: | 01/01/70 00:00 | |
| this may, some day, bite you in your lagest muscle | 01/01/70 00:00 | |
| also may, some day, bite you in your lagest muscle | 01/01/70 00:00 | |
| CALL or JMP | 01/01/70 00:00 | |
| good catch | 01/01/70 00:00 | |
| RE: | 01/01/70 00:00 | |
find out | 01/01/70 00:00 | |
| Remember the update | 01/01/70 00:00 | |
| So, what the final answer ? | 01/01/70 00:00 | |
| diplomatic answer - OK and the direct too | 01/01/70 00:00 | |
| care with multi-read/multi-write of running timers | 01/01/70 00:00 | |
| Re:problem with updating a 16-bit counter | 01/01/70 00:00 | |
| If you knew that.................. | 01/01/70 00:00 | |
| RE:If you knew that.................. | 01/01/70 00:00 |



