
EZ-USB FX2 Technical Reference Manual
Page 12-4 EZ-USB FX2 Technical Reference Manual v2.1
MOVX @Ri, A Move A to external data at address Ri 1 2-9* F2-F3
MOVX @DPTR, A Move A to external data at address DPTR 1 2-9* F0
PUSH direct Push direct byte onto stack 2 2 C0
POP direct Pop direct byte from stack 2 2 D0
XCH A, Rn Exchange A and register 1 1 C8-CF
XCH A, direct Exchange A and direct byte 2 2 C5
XCH A, @Ri Exchange A and data memory
at address Ri
11 C6-C7
XCHD A, @Ri Exchange the low-order nibbles
of A and data memory at address Ri
11 D6-D7
* Number of cycles is user-selectable. See Section 12.1.2, "Stretch Memory Cycles (Wait States)"
.
Boolean
CLR C Clear carry 1 1 CY=0 C3
CLR bit Clear direct bit 2 2 C2
SETB C Set carry 1 1 CY=1 D3
SETB bit Set direct bit 2 2 D2
CPL C Complement carry 1 1 CY B3
CPL bit Complement direct bit 2 2 B2
ANL C, bit AND direct bit to carry 2 2 CY 82
ANL C, /bit AND inverse of direct bit to carry 2 2 CY B0
ORL C, bit OR direct bit to carry 2 2 CY 72
ORL C, /bit OR inverse of direct bit to carry 2 2 CY A0
MOV C, bit Move direct bit to carry 2 2 CY A2
MOV bit, C Move carry to direct bit 2 2 92
Branching
ACALL addr11 Absolute call to subroutine 2 3 11-F1
LCALL addr16 Long call to subroutine 3 4 12
RET Return from subroutine 1 4 22
RETI Return from interrupt 1 4 32
AJMP addr11 Absolute jump unconditional 2 3 01-E1
LJMP addr16 Long jump unconditional 3 4 02
SJMP rel Short jump (relative address) 2 3 80
JC rel Jump if carry = 1 2 3 40
JNC rel Jump if carry = 0 2 3 50
JB bit, rel Jump if direct bit = 1 3 4 20
JNB bit, rel Jump if direct bit = 0 3 4 30
JBC bit, rel Jump if direct bit = 1, then clear the bit 3 4 10
JMP @ A+DPTR Jump indirect to address DPTR+A 1 3 73
Table 12-2. FX2 Instruction Set (Continued)
Mnemonic Description Bytes Cycles
PSW
Flags
Affected
Opcode
(Hex)
Comentários a estes Manuais