| Function |
Mnemonic |
Operation |
Intel® 8088 Equivalent |
Notes |
| Arithmetic and Logic |
ADC |
addition with carry |
|
|
| ADD |
addition |
|
|
| AND |
logical product (bitwise AND) |
|
|
| BIT |
bit test |
TEST |
Use a mask to test a bit or bits in A, B, [HL] without affecting
registers except for the flags. |
| CP |
comparision |
CMP |
Basically subtraction of second argument from first argument except
that only the flags are changed (not other register contents as with
SUB). So, if arguments are equal, the Z flag is set. |
| CPL |
1's compliment (negation) |
|
|
| DEC |
decrement |
|
|
| DIV |
division |
|
L=HL/A, H=remainder Only 8-bit :( |
| INC |
increment |
|
|
| MLT |
multiplication |
MUL |
HL=A*L, No arguments because always A*L! |
| NEG |
2's compliment (negation) |
|
|
| OR |
logical sum (bitwise OR) |
|
|
| SUB |
subtraction |
|
|
| UPCK |
unpack |
|
|
| XOR |
exclusive OR |
|
|
| Transfer |
EX |
byte/word exchange |
XCHG |
|
| LD |
load |
MOV |
|
| SWAP |
nibble exchange |
|
|
| Rotate/Shift Only 1 shift per instruction! |
RL |
rotate left through carry |
RCL |
|
| RLC |
rotate left |
ROL |
|
| RR |
rotate right through carry |
RCR |
Carry goes to LSB, MSB goes into carry |
| RRC |
rotate right |
ROR |
|
| SLA |
shift arithmetic left |
SAL |
MSB goes to carry, 0 goes to LSB |
| SLL |
shift logical left |
SHL |
|
| SRA |
shift arithmetic right |
SAR |
|
| SRL |
shift logical right |
SHR |
|
| Auxilary Operation |
PACK |
pack |
|
|
| SEP |
code extension |
|
|
| UPCK |
unpack |
|
|
| Stack Control |
POP |
pop stack |
|
|
| PUSH |
push stack |
|
|
| Branch |
CALL |
indirect call |
|
|
| CARL |
relative long call |
|
See note below |
| CARS |
relative short call |
|
See note below |
| DJR |
loop |
|
|
| INT |
software interrupt |
|
|
| JP |
indirect jump |
|
|
| JRL |
relative long jump |
|
See not below |
| JRS |
relative short jump |
|
See not below |
| RET |
return |
|
|
| RETE |
exception processing return |
|
|
| RETS |
return and skip |
|
|
| System Control |
HALT |
shift to HALT status |
|
|
| NOP |
no operation |
|
|
| SLP |
shift to SLEEP status |
|
|