Intel 80386 DJ Equipment User Manual


 
80386
2.4.2 80386 Instructions
Table 2-2b Arithmetic Instructions
Table 2-2a Data Transfer
ADDITION
GENERAL
PURPOSE
ADD
Add operands
MOV Move operand
ADC
Add with carry
PUSH
Push
operand onto stack
INC
Increment
operand by 1
POP
Pop
operand
off
stack
AAA
ASCII adjust for addition
PUSHA Push all registers on stack
DAA
Decimal adjust for addition
POPA Pop all registers
off
stack
SUBTRACTION
XCHG Exchange Operand, Register
SUB
Subtract operands
XLAT
Translate
SBB
Subtract with borrow
CONVERSION
DEC Decrement operand by 1
MOVZX Move byte or Word, Dword, with zero
NEG Negate operand
extension
CMP
Compare operands
MOVSX Move byte
or
Word, Dword, sign
DAS
Decimal
adjust for subtraction
extended
CBW Convert byte to Word, or Word to Dword
AAS
ASCII
Adjust for subtraction
MULTIPLICATION
CWO
Convert Word
to
DWORD
CWDE Convert Word
to
DWORD extended
COO Convert DWORD
to
aWORD
MUL Multiply Double/Single Precision
IMUL Integer multiply
AAM ASCII adjust after multiply
INPUT !OUTPUT
DIVISION
IN
Input operand from
I/O
space
OUT Output operand to
I/O
space
DIV Divide unsigned
IDIV Integer Divide
ADDRESS OBJECT
AAD ASCII adjust before division
LEA
Load effective address
LOS
Load pointer into 0 segment register
Table 2-2c String Instructions
LES
Load pointer into E segment register
MOVS Move byte or Word, Dword string
LFS Load pointer into F segment register
INS Input string from
I/O
space
LGS
Load pOinter into G segment register
OUTS Output string to
I/O
space
LSS Load pointer into S (Stack) segment
CMPS Compare byte or Word, Dword string
register
SCAS Scan Byte or Word, Dword string
FLAG MANIPULATION LODS
Load byte or Word, Dword string
LAHF
Load A register from
Flags STOS
Store
byte or Word, Dword string
SAHF
Store
A register in Flags REP Repeat
PUSHF Push flags onto stack REPE/
POPF
Pop flags
off stack
REPZ Repeat while equal/zero
PUSHFD
Push EFlags
onto stack
POPFD
Pop EFlags
off stack
CLC
Clear
Carry Flag
CLD
Clear
Direction Flag
CMC Complement
Carry Flag
STC Set
Carry Flag
STD
Set
Direction Flag
RENE!
REPNZ Repeat while not
equal/not
zero
Table 2-2d Logical Instructions
LOGICALS
NOT
"NOT"
operands
AND
"AND"
operands
OR
"Inclusive
OR"
operands
XOR "Exclusive
OR"
operands
TEST
"Test"
operands
15