Appendices
A-24
CP2E CPU Unit Software User’s Manual(W614)
A-1-10 Conversion Instructions
Instruction Mnemonic Variations Symbol/Operand Function
BCD-TO-BINA
RY
BIN @ Converts BCD data to binary data.
DOUBLE
BCD-TO-DOU-
BLE BINARY
BINL @ Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary)
data.
BINARY-TO-
BCD
BCD @ Converts a word of binary data to a word of BCD data.
DOUBLE
BINARY-TO-
DOUBLE BCD
BCDL @ Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD
data.
2'S COMPLE-
MENT
NEG @ Calculates the 2's complement of a word of hexadecimal data.
BIN(023)
S
R
S: Source word
R: Result word
(BCD) (BIN)
R
BINL(058)
S
R
S: 1st source word
R: 1st result word
(BCD) (BIN)
(BCD) (BIN)
R
R+1
BCD(024)
S
R
S: Source word
R: Result word
(BCD)(BIN)
R
BCDL(059)
S
R
S: 1st source word
R: 1st result word
(BIN) (BCD)
(BIN) (BCD)
R
R+1
NEG(160)
S
R
S: Source word
R: Result word
2's complement
(Complement + 1)
(S)
(R)