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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/07/02 04:17
Read: times


 
#26870 - I agree
It is doing exactly what the acronym spells out. It decrements, then if the result is not zero, it jumps. So your example program basically executes #internal_loop one time. DJNZ decrements R5 from 1 to 0, then tests whether or not R5 is zero. It is zero, so program execution carries on.

List of 16 messages in thread
TopicAuthorDate
simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
I agree            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question on ASM DJNZ command            01/01/70 00:00      
RE: simple question ,erik,george            01/01/70 00:00      
RE: simple question ,erik,george,corexon            01/01/70 00:00      
RE: simple question ,erik,george,corexon            01/01/70 00:00      
RE: simple question ,erik,george,corexon            01/01/70 00:00      
RE: simple question ,erik,george,corexon            01/01/70 00:00      

Back to Subject List