EasyManua.ls Logo

Intel 8253 - Page 606

Intel 8253
773 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
XA User Guide 9-8 3/24/97
9.2 Code Translation
Table 9.2 shows every 80C51 instruction type and the XA instruction that replaces it. An actual
80C51 to XA source code translator can make use of this table, but must also flag the
compatibility exceptions noted in this section, so that any necessary adjustments may be made to
the resulting XA source code.
Table 9.2: 80C51 to XA Instruction Translations
80C51 Instruction XA Translation
Arithmetic operations
ADD A, Rn
ADD A, #data8
ADD A,dir8
ADD A, @Ri
ADDC A, Rn
ADDC A, #data8
ADDC A,dir8
ADDC A, @Ri
ADD.b R, R
ADD.b R, #data8
ADD.b R, direct
ADD.b R, [R]
ADDC.bR, R
ADDC.bR, #data8
ADDC.bR, direct
ADDC.bR, [R]
SUBB A, Rn
SUBB A, #data8
SUBB A, dir8
SUBB A, @Ri
SUBB.bR, R
SUBB.bR, #data8
SUBB.bR, direct
SUBB.bR, [R]
INC Rn
INC dir8
INC @Ri
INC A
INC DPTR
ADDS.bR, #1
ADDS.bdirect, #1
ADDS.b[R], #1
ADDS.bR, #1
ADDS.wR, #1
DEC Rn
DEC dir8
DEC @Ri
DEC A
ADDS.bR, #-1
ADDS.bdirect, #-1
ADDS.b[R], #-1
ADDS.bR, #-1
MUL AB
DIV AB
DA A
MULU.bR, R
DIVU.b R, R
DA R

Table of Contents