XCHG - Exchange
Usage: XCHG dest,src
Modifies Flags: None
Exchanges contents of source and destination.
Clocks | ||||
---|---|---|---|---|
operands | 286 | 386 | 486 | Size Bytes |
reg,reg | 3 | 3 | 3 | 2 |
mem,reg | 5 | 5 | 5 | 2-4 |
reg,mem | 5 | 5 | 3 | 2-4 |
accum,reg | 3 | 3 | 3 | 1 |
reg,accum | 3 | 3 | 3 | 1 |
XLAT/XLATB - Translate
Usage: XLAT translation-table
XLATB (masm 5.x)
Modifies Flags: None
Replaces the byte in AL with byte from a user table addressed by BX. The original value of AL is the index into the translate table. The best way to discripe this is MOV AL,[BX+AL]
Clocks | ||||
---|---|---|---|---|
operands | 286 | 386 | 486 | Size Bytes |
table offset | 5 | 5 | 4 | 1 |
XOR - Exclusive OR
Usage: XOR dest,src
Modifies Flags: CF OF PF SF ZF (AF undefined)
Performs a bitwise exclusive OR of the operands and returns the result in the destination.
Clocks | ||||
---|---|---|---|---|
operands | 286 | 386 | 486 | Size Bytes |
reg,reg | 2 | 2 | 1 | 2 |
mem,reg | 7 | 6 | 3 | 2-4 |
reg,mem | 7 | 7 | 2 | 2-4 |
reg,immed | 3 | 2 | 1 | 3-4 |
mem,immed | 7 | 7 | 3 | 3-6 |
accum,immed | 3 | 2 | 1 | 2-3 |
[ TOC | Previous | NeXt | Winston's page ]