user manual

INSTRUCTION DESCRIPTIONS
MOTOROLA INSTRUCTION SET DETAILS A - 79
Example:
:
CMP Y0, B ; Compare register Y0 with the B accumulator.
DEBUGge ; Enter the debug mode if
; the previous test result is “greater than”.
:
Explanation of Example: The results of the comparison between Y0 and B will be
recorded in the status register bits. The conditional debug instruction looks at the condi-
tions (for greater than or equal in this case) and if they are met (N
V=0) then the
DEBUG instruction will be executed. The chip enters the debug mode after the instruc-
tion following the DEBUG instruction has entered the instruction latch. The chip pulses
low the DSO line to inform the external command controller that it has entered the debug
mode and that the chip is waiting for commands.
Instruction Format:
DEBUGcc
Opcode:
Instruction Fields:
Mnemonic c c c c Mnemonic c c c c
CC (HS) 0 0 0 0 CS (LO) 1 0 0 0
GE 0 001 LT 1001
NE 0 010 EQ 1010
PL 0 011 MI 1011
NN 0 100 NR 1100
EC 0 101 ES 1101
LC 0 110 LS 1110
GT 0 111 LE 1111
Timing: 4 oscillator clock cycles
Memory: 1 program word
DEBUGcc Enter Debug Mode Conditionally DEBUGcc
23 16 15 8 7 0
00000000000000110000cccc