![NEC mPD17120 Subseries User Manual Download Page 116](http://html.mh-extra.com/html/nec/mpd17120-subseries/mpd17120-subseries_user-manual_249259116.webp)
CHAPTER 11 ARITHMETIC AND LOGIC UNIT
101
11.6.3 "Greater Than or Equal to" Judgement
The "greater than or equal to" judgement instruction (SKGE m, #n4) is used to determine if the contents of a location
in data memory is a value greater than or equal to the value of the immediate data operand. If the value in data memory
is greater than or equal to that of the immediate data, this instruction causes the next instruction to be skipped.
Example
MOV
M1,
#1000B
SKGE
M1,
#0111B
; <1>
BR
A
BR
B
;
SKGE
M1,
#1000B
; <2>
BR
C
BR
D
;
SKGE
M1,
#1001B
; <3>
BR
E
BR
F
In this example, the program will first branch to B since the value in data memory is larger than that
of the immediate data. Next, it will branch to D since the value in data memory is equal to that of
the immediate data. Lastly it will branch to E since the value in data memory is less than that of the
immediate data.
11.6.4 "Less Than" Judgement
The "less than" judgement instruction (SKLT m, #n4) is used to determine if the contents of a location in data
memory is a value less than that of the immediate data operand. If the value in data memory is less than that of
the immediate data, this instruction causes the next instruction to be skipped.
Example
MOV
M1,
#1000B
SKLT
M1,
#1001B
; <1>
BR
A
BR
B
;
SKLT
M1,
#1000B
; <2>
BR
C
BR
D
;
SKLT
M1,
#0111B
; <3>
BR
E
BR
F
In this example, the program will first branch to B since the value in data memory is less than that
of the immediate data. Next, it will branch to C since the value in data memory is equal to that of
the immediate data. Lastly it will branch to E since the value in data memory is greater than that of
the immediate data.
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 ...