Appendix
A96G140/A96G148/A96A148 User’s manual
272
Table 59. Instruction Table (continued)
DATA TRANSFER
Mnemonic
Description
Bytes
Cycles
Hex code
MOV A,Rn
Move register to A
1
1
E8-EF
MOV A,dir
Move direct byte to A
2
1
E5
MOV A,@Ri
Move indirect memory to A
1
1
E6-E7
MOV A,#data
Move immediate to A
2
1
74
MOV Rn,A
Move A to register
1
1
F8-FF
MOV Rn,dir
Move direct byte to register
2
2
A8-AF
MOV Rn,#data
Move immediate to register
2
1
78-7F
MOV dir,A
Move A to direct byte
2
1
F5
MOV dir,Rn
Move register to direct byte
2
2
88-8F
MOV dir,dir
Move direct byte to direct byte
3
2
85
MOV dir,@Ri
Move indirect memory to direct byte
2
2
86-87
MOV dir,#data
Move immediate to direct byte
3
2
75
MOV @Ri,A
Move A to indirect memory
1
1
F6-F7
MOV @Ri,dir
Move direct byte to indirect memory
2
2
A6-A7
MOV @Ri,#data
Move immediate to indirect memory
2
1
76-77
MOV DPTR,#data Move immediate to data pointer
3
2
90
MOVC
A,@A+DPTR
Move code byte relative DPTR to A
1
2
93
MOVC A,@A+PC Move code byte relative PC to A
1
2
83
MOVX A,@Ri
Move external data(A8) to A
1
2
E2-E3
MOVX A,@DPTR Move external data(A16) to A
1
2
E0
MOVX @Ri,A
Move A to external data(A8)
1
2
F2-F3
MOVX @DPTR,A Move A to external data(A16)
1
2
F0
PUSH dir
Push direct byte onto stack
2
2
C0
POP dir
Pop direct byte from stack
2
2
D0
XCH A,Rn
Exchange A and register
1
1
C8-CF
XCH A,dir
Exchange A and direct byte
2
1
C5
XCH A,@Ri
Exchange A and indirect memory
1
1
C6-C7
XCHD A,@Ri
Exchange A and indirect memory nibble 1
1
D6-D7