
Z8
®
CPU
User Manual
UM001604-0108 Instruction Description
177
•
End the loop with DJNZ
The assembly listing required for this routine is as follows:
LD R6, 12 ;Load Counter
LOOP: LD R9, @R6 ;Move one byte to
LD @R6, R9 ;new location
DJNZ R6, LOOP ;Decrement and Loop until counter
;= 0
Comentarios a estos manuales