





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















When the 8088 executes an instruction, it performs the specified functionon data
-^
These data, called operands,^ –
May be a part of the instruction
-^
May reside in one of the internal registers of the microprocessor
-^
May be stored at an address in memory
Register Addressing Mode^ –
MOV AX, BX
-^
MOV ES,AX
-^
MOV AL,BH
Immediate Addressing Mode^ –
MOV AL,15h
-^
MOV AX,2550h
-^
MOV CX,
MOV AX,
DS (Shifted Left) + SI = 13698.With little endian convention:
Low address 13698
Æ
FE
High Address 13699
Æ
17
MOV AH, [
] + 1234h SIDI
Example: What is the physical address MOV [DI-8],BL if DS=200 & DI=30h ?DS:200 shift left once 2000 + DI + -8 = 2028
-^
CSSS
BX
SI
8 bit displacement
PA=
DS
:^
BP
DI
16 bit displacement
ES
MOV AH,[BP+SI+29]
or
MOV AH,[SI+29+BP]
or
MOV AH,[SI][BP]+
The register order doesnot matter
Addressing Mode
Operand
Default Segment
Register
Reg
None
Immediate
Data
None
Direct
[of
fset]
Register Indirect
Based Relative
[BX]+disp [BP]+disp
Indexed Relative
[DI]+disp[SI]+disp
Based IndexedRelative
[BX][SI or DI]+disp [BP][SI or DI]+disp
Instruction Fetch
none
StackOperations
none
General Data
BX, address
String Source
SI, DI, address
StringDestination
None
Brey
-^
-^
-^
More machine language instructions than an assembled version of anequivalent handwritten assembly language program
-^
It takes up less memory
-^
It executes much faster
-^
-^
Opcode field (6 bits) specifies the operation such as add, subtract, or move
-^
Register Direction Bit (D bit)
-^
Tells the register operand in REG field in byte 2 is source or destination operand
-^
1:Data flow to the REG field from R/M
-^
0: Data flow from the REG field to the R/M
Data Size Bit (W bit)
-^
Specifies whether the operation will be performed on 8-bit or 16-bit data
-^
0: 8 bits
-^
1: 16 bits
-^
Mode field (MOD) – 2 bits
-^
Register field (REG) - 3 bits
-^
Register/memory field (R/M field) – 2 bits
Opcode for MOV = 100010
-^
We’ll encode AL so^ –
D = 0 (AL source operand)
W bit = 0 (8-bits)
-^
MOD = 11 (register mode)
-^
REG = 000 (code for AL)
-^
100010
0
0
11
000
011
MOV BL,AL => 10001000 11000011 = 88 C3h ADD AX,[SI] => 00000011 00000100 = 03 04 h ADD [BX][DI] + 1234h, AX =>
00000001 10000001 __ __ h
=> 01 81 34 12 h
-^
-^
-^
-^
-^
-^
ADD AX, BX
Opcode
Source operand
Destination operand