Table A-20. Summary of Compare Instructions
Compare
CMP <dest>,<src>
Mnemonic
<dest>,<src>
Rmd,Rms
WRjd,WRjs
DRkd,DRks
Rm,#data
WRj,#data16
DRk,#0data16
CMP
DRk,#1data16
Rm,dir8
WRj,dir8
Rm,dir16
WRj,dir16
Rm,@WRj
Rm,@DRk
†
If this instruction addresses an I/O port (P x , x = 3:0), add 1 to the number of states.
dest opnd – src opnd
Notes
Reg with reg
Word reg with word reg
Dword reg with dword reg
Reg with immediate data
Word reg with immediate 16-bit data
Dword reg with zero-extended 16-bit
immediate data
Dword reg with one-extended 16-bit
immediate data
Dir addr from byte reg
Dir addr from word reg
Dir addr (64K) from byte reg
Dir addr (64K) from word reg
Indir addr (64K) from byte reg
Indir addr (16M) from byte reg
INSTRUCTION SET REFERENCE
Binary Mode
Source Mode
Bytes States Bytes States
3
2
3
3
3
5
4
3
5
4
5
6
5
6
†
4
3
4
4
5
3
5
4
4
3
4
4
2
1
2
2
2
4
3
2
4
3
4
5
4
5
†
3
2
3
3
4
2
4
3
3
2
3
3
A-15