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 15:41
Read: times


 
#26895 - RE: simple question on ASM DJNZ command


erik malund wrote:
-------------------------------
To illustrate:
If the loop length is more than 256 you must

mov r7,#LOW LoopLength
mov r6,#HIGH (LoopLength + 1)
loop:
...
...
djnz r7,loop
djnz r6,loop

visualize this with LoopLength = 3 and LoopLength = 260.

Sorry Erik,
Are you sure that your loop will work 260 times? I am not. Seems to me it will work
only 4 times.

Have fun with calculations(:-),
George

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