3/24/97 9-11 8051 Compatibility
9.3 New Instructions on the XA
While the XA instructions that are similar to 80C51 instructions have a larger addressing range,
more status flags, etc., the XA also has many entirely new instructions and addressing modes that
make writing new code for the XA much easier and more efficient. The new addressing modes
also make the XA work very well with high level language compilers. A complete list of the new
XA instructions and addressing modes is shown in Table 9.3.
Relative branches
SJMP rel8 BR rel8
CJNE A, dir8, rel
CJNE A, #data8, rel
CJNE Rn, #data8, rel
CJNE @Ri, #data8, rel
CJNE.b R, direct, rel
CJNE.b R, #data8, rel
CJNE.b R, #data8, rel
CJNE.b [R], #data8, rel
DJNZ Rn, rel
DJNZ dir8, rel
DJNZ.b R, rel
DJNZ.b direct, rel
JZ rel
JNZ rel
JC rel
JNC rel
JZ rel
JNZ rel
BCS rel
BCC rel
Jumps, Calls, Returns,
and Misc.
NOP NOP
AJMP addr11
LJMP addr16
JMP @A+DPTR
JMP rel16
JMP rel16
JUMP [A+DPTR]
ACALLaddr11
LCALL addr16
CALL rel16
CALL rel16
RET
RETI
RET
RETI
Table 9.2: 80C51 to XA Instruction Translations
80C51 Instruction XA Translation