| Oleg Sergeev 10/29/04 07:28 Read: 938 times St. Petersburg Russia |
#80001 - RE: startup code Responding to: Farhan Arshad's previous message |
hi,
CLR A IDATALOOP: MOV @R0,A; my code stuck in the loop DJNZ R0,IDATALOOP;Indeed, you load R0 with zero, then do DJNZ with R0 and then clear it again -- infinite loop. Hint: I think you should use MOVX for xdata memory access. Moreover, xdata memory size is more than 256 bytes so I think you should use DPTR and corresponded number of loops. Regards, Oleg |
| Topic | Author | Date |
| startup code | Farhan Arshad | 10/28/04 23:49 |
| RE: startup code | Farhan Arshad | 10/28/04 23:58 |
RE: startup code | Oleg Sergeev | 10/29/04 07:28 |



