CHAPTER 11 ARITHMETIC AND LOGIC UNIT
100
11.6.1 "Equal to" Judgement
The "equal to" judgement instruction (SKE m, #n4) is used to determine if immediate data and the contents of
a location in data memory are equal.
This instruction causes the next instruction to be skipped when the immediate data and the contents of data
memory are equal.
Example
MOV
M1,
#1010B
SKE
M1,
#1010B
; <1>
BR
A
BR
B
;
SKE
M1,
#1000B
; <2>
BR
C
BR
D
In this example, because the contents of data memory M1 and immediate data 1010B in step number
<1> are equal, the program branches to B. In step number <2>, because the contents of data memory
M1 and immediate data 1000B are not equal, the program branches to C.
11.6.2 "Not Equal to" Judgement
The "not equal to" judgement instruction (SKNE m, #n4) is used to determine if immediate data and the contents
of a location in data memory are not equal.
This instruction causes the next instruction to be skipped when the immediate data and the contents of data
memory are not equal.
Example
MOV
M1,
#1010B
SKNE
M1,
#1000B
; <1>
BR
A
BR
B
;
SKNE
M1,
#1010B
; <2>
BR
C
BR
D
In this example, because the contents of data memory M1 and immediate data 1000B in step number
<1> are not equal, the program branches to B. In step number <2>, because the contents of data
memory M1 and immediate data 1010B are equal, the program branches to C.
Summary of Contents for mPD17120 Subseries
Page 15: ... x MEMO ...
Page 23: ... MEMO 8 ...
Page 45: ... MEMO 30 ...
Page 49: ... MEMO 34 ...
Page 55: ... MEMO 40 ...
Page 93: ... MEMO 78 ...
Page 99: ... MEMO 84 ...
Page 102: ...CHAPTER 11 ARITHMETIC AND LOGIC UNIT 87 MEMO ...
Page 119: ... MEMO 104 ...
Page 175: ... MEMO 160 ...
Page 199: ... MEMO 184 ...
Page 265: ... MEMO 250 ...
Page 281: ...266 MEMO ...
Page 285: ... MEMO 270 ...
Page 289: ... MEMO 274 ...