Sonic Alert msm85c154hvs Clock Radio User Manual


 
DESCRIPTION OF INSTRUCTIONS
287
36. DJNZ data address, code address (Decrement memory, and jump if not zero)
11010101
70
Instruction code
Data address
Relative offset
Operations
Number of bytes
Number of cycles
Flags
(PSW)
Description
: Byte 1
R7 R6 R5 R4 R3 R2 R1 R0
70
Byte 3
(PC)(PC)+3
(data address)(data address)–1
IF (data address)0
THEN
(PC)(PC)+relative offset
:
C AC F0 RS1 RS0 OV F1 P
:
:
:
The specified data address contents are decremented by 1.
Control is shifted to a relative jump address if data address
contents are not 0 as a result of the decrement. Control is
shifted to the next address following this instruction if the result
is 0.
:
3
2
a7 a6 a5 a4 a3 a2 a1 a0
70
Byte 2