3addressing Modes
3addressing Modes
Introduction to Programming
Machine Language
Assembly Language
• Part of Instruction
• May reside in one of the internal registers of
the processor
• May be stored at an address in memory
Instruction
Data is part of Instruction
either 8 bits or 16 bits
Data
Eg. MOV AX,1234H
MOV AL,15H
8086 Address Memory Instruction
Content
IP 0000
01000 B0 MOV AL,15H
CS 0100 01001 15
After Execution 01002 XX Next Instruction
DS
SS IP 0002 01003 XX
ES CS 0100
AX 1234 AX 1215
Addressing Modes-Data Related
Register operand Addressing mode
Register
Data is in the register that is
Instruction Register specified by the instruction
8086
Address Memory Instruction
Content
IP 0000
01000 8B MOV CX,[1234H]
CS 0100 After Execution 01001 0E
DS 0200 01002 34
IP 0002 01003 12
SS
ES CS 0100 01004 XX Next Instruction
AX :
5768
CX 5678
BX 5768
Addressing Modes-Data Related
Memory operand Addressing mode
Direct Instruction Memory
EA Data
8086
01002 34
01003 12
IP 0000
01004 XX Next Instruction
CS 0100 After Execution : Shifted DS
DS 0200 02000 XX 02000
IP 0004
SS 02000 EA 1234
ES CS 0100 :
PA 03234
CX 9500 03234 00
CX 5678
03235 95
Addressing Modes-Data Related
Memory operand Addressing mode
Register PA
Register Indirect
Instruction Register Memory EA + Data
Register EA Data Shifted Segment Register
8086
01002 34
01003 12
IP 0000
01004 XX Next Instruction
CS 0100 After Execution : Shifted DS