Appendix EProgramming Instructions
128
IR SR HR TR AR LR TC DM #
00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315 TC 000 to 511 Read/Wr: DM 0000 to DM 0999
Rd only: DM 1000 to DM 1999
0000 to 9999
or 0000 to FFFF
These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers.
Data
Areas
Name
Mnemonic
Operand Data AreasFunctionSymbol
MOVE NOT
(@)MVN(22)
MVN(22)
S
D
Transfers the inverse of the data in the
source word (S) to destination word (D).
S:
IR
SR
HR
AR
LR
TC
DM
#
D:
IR
HR
AR
LR
DM
BCD-TO-BINARY
(@)BIN(23)
BIN(23)
S
R
Converts
4-digit, BCD data in source
word
(S) into 16-bit binary data, and outputs
converted data to result word (R).
S
x10
0
x10
1
x10
2
x10
3
x16
0
x16
1
x16
2
x16
3
(BCD)(BIN)
R
S:
IR
SR
HR
AR
LR
TC
DM
R:
IR
HR
AR
LR
DM
BINARY-TO-BCD
(@)BCD(24)
BCD(24)
S
R
Converts binary data in source word (S)
into BCD, and outputs converted data to
result word (R).
x16
0
x16
1
x16
2
x16
3
x10
1
x10
2
x10
3
S
R
(
BIN) (BCD
)
x10
0
S:
IR
SR
HR
AR
LR
DM
R:
IR
HR
AR
LR
DM
ARITHMETIC SHIFT
LEFT
(@)ASL(25)
ASL(25)
Wd
Each bit within a single word
of data (Wd)
is
shifted one bit to the left, with zero written
to bit 00 and bit 15 moving to CY.
Wd
15
00
CY
0
Wd:
IR
HR
AR
LR
DM
ARITHMETIC SHIFT
RIGHT
(@)ASR(26)
ASR(26)
Wd
Each bit within a single word
of data (Wd)
is
shifted one bit to the right, with zero writ
-
ten to bit 15 and bit 00 moving to CY.
0
Wd CY
15 00
Wd:
IR
HR
AR
LR
DM
ROTATE LEFT
(@)ROL(27)
ROL(27)
Wd
Each bit within a single word
of data (Wd)
is
moved one bit to the
left, with bit 15 mov
-
ing
to carry (CY), and CY moving
to bit 00.
15
00
CY
Wd
Wd:
IR
HR
AR
LR
DM
Downloaded from Elcodis.com electronic components distributor