English
Language : 

AS6133 Datasheet, PDF (40/115 Pages) NEC – For PC-9800 (MS-DOS-TM Based), For IBM PC/ATTM (PC DOS-TM Based)
PART I CHAPTER 2 CODING SOURCE PROGRAMS
(5) GT (Greater Than) operator
Returns 0FFFFH if the value on the left side is greater than that on the right side; otherwise, returns 0.
"GT" can be replaced by ">".
[Example]
Address
Symbol
COMP5:
Mnemonic
MOV
Operand
A,#(MAX GT 5)
The MOV instruction causes 0FH to be loaded into Acc if MAX is greater than 5, or 0 if MAX is equal to or
less than 5.
(6) GE (Greater Than or Equal) operator
Returns 0FFFFH if the value on the left side is equal to or greater than that on the right side; otherwise,
returns 0.
"GE" can be replaced by ">=".
[Example]
Address
Symbol
COMP6:
Mnemonic
MOV
Operand
A,#(MAX GE 5)
The MOV instruction causes 0FH to be loaded into Acc if MAX is equal to or greater than 5, or 0 if MAX is
less than 5.
2.9.6 Shift operators
(1) SHR (Shift Right) operator
Shifts the value on the left side to the right by the value on the right side.
As a result of the shift, the MSB is set to 0.
[Example]
Address
01FA
Symbol
FIELD:
Mnemonic
MOV
Operand
A,#($ SHR 5)
$ (address: 01FAH) is shifted to the right by five bits.
As a result, 0DH is loaded into Acc.
(2) SHL (Shift Left) operator
Shifts the value on the left side to the left by the value on the right side.
As a result of the shift, the LSB is set to 0.
[Example]
Address
0021
Symbol
FLY:
Mnemonic
JMP
Operand
FLY SHL 2
FLY (address: 0021H) is shifted to the left by two bits.
As a result, control jumps to address 0084H.
40
User’s Manual U10115EJ3V0UM