Hardware Reference
In-Depth Information
List File [NUL.MAP]: <ENTER>
Libraries [.LIB]: <ENTER>
LINK : warning L4021: no stack segment
The warning is ignored and the executable file is then tested:
C>ptest <RETURN>
The following printed output appears when the program is run:
ABCDEFGHIJKLMNOPQRSTUVWXYZ[ \ ]ˆ_'abcdefghijklmnop rstuvwxvz{|}
8086 assembly
language
Before attempting to provide readers with an introduction to assembly language
programming techniques and the use of a modern 32-bit macro assembler, it is
important that readers have a basic understanding of the internal architecture
and registers available within the 8086 microprocessor. We shall start, however,
by briefly summarizing the 8086 instruction set.
8086 instruction set summary
The following is a brief summary of the 8086 instruction set.
Data transfer instructions
MOV
Move byte or word to register or memory
Input byte or word from port, output word to port
IN, OUT
Load-effective address
LEA
Load pointer using Data Segment, Extra Segment
LDS, LES
Push word onto stack, pop word off stack
PUSH, POP
Exchange byte or word
XCHG
Translate byte using look-up table
XLAT
Logical instructions
NOT
Logical NOT of byte or word (one's complement)
Logical AND of byte or word
AND
Logical OR of byte or word
OR
Logical exclusive-OR of byte or word
XOR
Test byte or word (AND without storing)
TEST
Shift and rotate instructions
SHL, SHR
Logical shift left, right byte or word by 1 or CL
Arithmetic shift left, right byte or word by 1 or CL
SAL, SAR
Rotate left, right byte or word by 1 or CL
ROL, ROR
Rotate left, right through carry byte or word by
1orCL
RCL, RCR
Arithmetic instructions
ADD, SUB
Add, subtract byte or word
Add, subtract byte or word and carry (borrow)
ADC, SBB
Increment, decrement byte or word
INC, DEC
Negate byte or word (two's complement)
NEG
Search WWH ::




Custom Search