Docsity

Instruction Set Summary - Microprocessor Systems Engineering | El E 485, Study notes of Microprocessors

Toggle sidebar
bg1
8088 Instruction Set Summary Revised August 21,2000
This summary has been compiled from a number of sources, but chiefly from
8086/8088/80286 Assembly Language, by Scanlon, and A86 Macro Assembler and D86
Debugger Reference Manual, by Isaacson.
Instructions Important to El E 485/486 Flags
S Z C O P A
ADC Add with carry: dest ¬ dest + source + CF ü ü ü ü ü ü
ADD Add: dest ¬ dest + source ü ü ü ü ü ü
AND And: dest ¬ dest .AND. source ü ü 0 0 ü?
CALL CS:IP or IP ¬ address of procedure,
stack ¬ IP or CS:IP of next instruction
CBW Convert byte to word. AH ¬ bit 7of AL
CLC Clear the carry flag. CF ¬ 0 0
CLI Clear the interrupt enable bit.
Maskable interrupts are ignored.
CMC Complement the carry flag ü
CMP dest - source, result not stored ü ü ü ü ü ü
CWD DX ¬ AX15
DEC Decrement. dest ¬ dest - 1 ü ü ü ü ü
DIV Unsigned divide (immediate operand not allowed)
AX ¬ quo of {DX:AX/(word op)} and
DX ¬ rem of {DX:AX/(word op)}
or
AL ¬ quo of {AX/(byte op)} and
AH ¬ rem of {AX/(byte op)}
? ? ? ? ? ?
IDIV Signed divide (immediate operand not allowed)
AX, DX ¬ quo, rem of {DX:AX/(word op)}, or
AL, AH ¬ quo, rem of {AX/(byte op)}
? ? ? ? ? ?
IMUL Signed multiply (immediate operand not allowed)
DX:AX ¬ AX * (word op), or AX ¬ AL * (byte op)
? ? ü ü ? ?
IN AL ¬ port, or AX ¬ port
port is an immediate 8-bit address or DX
INC dest ¬ dest + 1 ü ü ü ü ü
INT execute a software interrupt
IRET return from interrupt ü ü ü ü ü ü
Jxx conditional jumps to a relative address (-128 to +127)
JA/JNBE, JAE/JNB, JB/JNAE, JC, JBE/JNA, JCXZ,
JE/JZ, JG/JNLE, JGE/JNL, JL/JNGE, JLE/JNG, JNC,
JNE/JNZ, JNO, JNP/JPO, JNS, JO, JP/JPE, JS
JMP Jump, IP or CS:IP ¬ operand
LEA dest ¬ address of operand
pf3

Partial preview of the text

Download Instruction Set Summary - Microprocessor Systems Engineering | El E 485 and more Study notes Microprocessors in PDF only on Docsity!

8088 Instruction Set Summary Revised August 21,

This summary has been compiled from a number of sources, but chiefly from

8086/8088/80286 Assembly Language , by Scanlon, and A86 Macro Assembler and D

Debugger Reference Manual , by Isaacson.

Instructions Important to El E 485/486 Flags

S Z C O P A

ADC Add with carry: dest ¬ dest + source + CF

ü ü ü ü ü ü

ADD Add: dest ¬ dest + source

ü ü ü ü ü ü

AND And: dest ¬ dest .AND. source

ü ü 0 0

ü ?

CALL CS:IP or IP ¬ address of procedure,

stack ¬ IP or CS:IP of next instruction

CBW Convert byte to word. AH ¬ bit 7of AL

CLC Clear the carry flag. CF ¬ 0 0

CLI Clear the interrupt enable bit.

Maskable interrupts are ignored.

CMC Complement the carry flag

ü

CMP dest - source , result not stored ü ü ü ü ü ü

CWD DX ¬ AX

DEC Decrement. dest ¬ dest - 1

ü ü ü ü ü

DIV Unsigned divide (immediate operand not allowed)

AX ¬ quo of {DX:AX/(word op)} and

DX ¬ rem of {DX:AX/(word op)}

or

AL ¬ quo of {AX/(byte op)} and

AH ¬ rem of {AX/(byte op)}

IDIV Signed divide (immediate operand not allowed)

AX, DX ¬ quo, rem of {DX:AX/(word op)}, or

AL, AH ¬ quo, rem of {AX/(byte op)}

IMUL Signed multiply (immediate operand not allowed)

DX:AX ¬ AX * (word op), or AX ¬ AL * (byte op)

ü ü ??

IN AL ¬ port, or AX ¬ port

port is an immediate 8-bit address or DX

INC dest ¬ dest + 1

ü ü ü ü ü

INT execute a software interrupt

IRET return from interrupt

ü ü ü ü ü ü

Jxx conditional jumps to a relative address (-128 to +127)

JA/JNBE, JAE/JNB, JB/JNAE, JC, JBE/JNA, JCXZ,

JE/JZ, JG/JNLE, JGE/JNL, JL/JNGE, JLE/JNG, JNC,

JNE/JNZ, JNO, JNP/JPO, JNS, JO, JP/JPE, JS

JMP Jump, IP or CS:IP ¬ operand

LEA dest ¬ address of operand

Instructions Important to El E 485/486 Flags

S Z C O P A

LOOP CX ¬ CX - 1, then transfer to short label destination

if CX ¹ 0;

LOOPE/LOOPZ, transfers if CX ¹ 0 and ZF = 1;

LOOPNE/LOOPNZ transfers if CX ¹ 0 and ZF = 0.

MOV dest ¬ operand or data stored at operand address

MUL Unsigned multiply (immediate operand not allowed)

DX:AX ¬ AX * (word op), or AX ¬ AL * (byte op)

ü ü ??

NEG dest ¬ - dest

ü ü ü ü ü ü

NOT dest ¬ complement{ dest }

OR dest ¬ dest .OR. source

ü ü 0 0

ü ?

OUT port ¬ AL or AX

operand is 8-bit immediate or DX

POP dest ¬ contents of stack, SP ¬ SP + 2

POPF flags ¬ contents of stack, SP ¬ SP + 2

ü ü ü ü ü ü

PUSH stack ¬ source , SP ¬ SP - 2

PUSHF stack ¬ flags, SP ¬ SP - 2

RCL rotate word or byte left including CF (9 bit or 17 bit

rotate); source 1 or CL.

ü ?

RCR rotate word or byte right including CF (9 bit or 17 bit

rotate); source is 1 or CL.

ü ?

RET CS:IP or IP ¬ stack

ROL Rotate left 8 or 16 bit dest .; source is 1 or CL

Bit rotated out is copied to CF

ü ?

ROR Rotate right 8 or 16 bit dest .; source is 1 or CL

Bit rotated out is copied to CF

ü ?

SAR Shift right through CF with sign extension;

source is 1 or CL

ü ü ü ? ü ?

SBB Subtract with borrow. dest ¬ dest - source - CF

ü ü ü ü ü ü

SHL or

SAL

Shift left dest through CF with 0 fill;

source is 1 or CL

ü ü ü ?

ü ?

SHR Shift right dest through CF with 0 fill;

source is 1 or CL

ü ü ? ü ?

STC CF ¬ 1 1

STI Set interrupt enable flag.

Maskable interrupts are serviced

SUB dest ¬ dest - source ü ü ü ü ü ü

TEST dest .AND. source

ü ü 0 0

ü ?

XCHG dest « source

XLAT AL ¬ [DS:(BX + unsigned AL)]

XOR dest ¬ dest .XOR. source

ü ü 0 0

ü ?