Renesas MCU Board for PC4400 Emulator System M34282T5-OPT User Manual page 28

Mcu board for pc4400 emulator system
Table of Contents

Advertisement

(2) Skip instructions (e.g. SNZP, INY, DEY, SZB, SEAM, SZC and RTS)
In cases when a skip instruction skips the next instruction, a break point set in the skipped
instruction does not cause execution to halt. (See Program examples 5.3 and 5.4)
Program example 5.3
POINT:
POINT_A:
If a break point is set at POINT,
D(0) = 0: Execution is halted immediately before the instruction at POINT.
D(0) = 1: Execution is NOT halted because the instruction at POINT is skipped.
To halt execution immediately after a skip instruction, set break points at POINT and POINT_A.
Program example 5.4
POINT:
If a break with pass count is set at address POINT, the count is taken and execution is halted
only when the instruction at address POINT is executed.
LXY
0,0
SZD
B
jmp_adr
; Skip when D(0) = 0
TAM
0
RC
INY
TABP
; Skip when (Y) = 0
LA
0
( 26 / 38 )

Advertisement

Table of Contents
loading

Table of Contents