Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/29/04 13:28
Read: times


 
#80001 - RE: startup code
Responding to: ???'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


List of 3 messages in thread
TopicAuthorDate
startup code            01/01/70 00:00      
   RE: startup code            01/01/70 00:00      
   RE: startup code            01/01/70 00:00      

Back to Subject List