Appendix AInstruction Set
538
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
DOUBLE BCD-TO-DOUBLE BINARY
BINL, jBINL
(102)
BINL S R
Converts the BCD value of the two source
words (S: starting word) into binary and
outputs the converted data to the two result
words (R: starting word). All words for any one
operand must be in the same data area.
S
S+1
R
R+1
S:
CIO
G
A
T/C
DM
R:
CIO
G
A
DM
221
DOUBLE BINARY-TO-DOUBLE BCD
BCDL, jBCDL
(103)
BCDL S R
Converts the binary value of the two source
words (S: starting word) into eight digits of
BCD data, and outputs the converted data to
the two result words (R: starting result word).
Both words for any one operand must be in
the same data area.
S
S+1
R
R+1
S:
CIO
G
A
T/C
DM
R:
CIO
G
A
DM
222
2’S COMPLEMENT
NEG, jNEG
(104)
NEG S D
Takes the 2’s complement of the 4-digit
hexadecimal content of the source word (S)
and outputs the result to the result word (R).
This operation is effectively the same as
subtracting S from $0000 and outputting the
result to R.
GR (A50005) is ON when the content of S is
$8000.
EQ (A50006) is ON when the content of S is 0.
N (A50008) is the same as the status of bit 15
of R after execution.
S:
CIO
G
A
T/C
#
DM
DR
IR
D:
CIO
G
A
DM
DR
IR
223
DOUBLE 2’S COMPLEMENT
NEGL, jNEGL
(105)
NEGL S D
Takes the 2’s complement of the 8-digit
hexadecimal content of the source words (S
and S+1) and outputs the result to the result
words (R and R+1). This operation is
effectively the same as subtracting S and S+1
from $0000 0000 and outputting the result to R
and R+1.
GR (A50005) is ON when the content of S is
$8000.
EQ (A50006) is ON when the content of S is 0.
N (A50008) is the same as the status of bit 15
of R after execution.
S:
CIO
G
A
T/C
#
DM
DR
IR
D:
CIO
G
A
DM
DR
IR
224
SIGN
SIGN, jSIGN
(106)
SIGN S D
Places FFFF into D+1 if the sign bit (bit 15) of
S is 1, places 0000 into D+1 if the sign bit is 0,
and copies the content of S to D.
D+1 D
S
0000 or
FFFF
S:
CIO
G
A
T/C
#
DM
DR
IR
D:
CIO
G
A
DM
225