SYSC3601-Slides-03-Intel Addressing Modes and Instruction Encoding PDF
SYSC3601-Slides-03-Intel Addressing Modes and Instruction Encoding PDF
Microprocessor Systems
Unit 3:
The Intel 8086 Addressing Modes
& Instruction Encoding
Topics/Reading
.
.
.
16 bit Index (DI, SI) (optional) Effective Address
← Segment:0000
SYSC3601 7 Microprocessor Systems
Addressing Modes
• Register addressing
– Data is in the registers specified in the
instructions.
– eg: MOV AX,BX
• Immediate addressing
– Data is a constant and is part of the
instruction.
– eg: MOV AX,3AH
Memory Memory
. .
. .
. .
(DS*10H)+1234H ← AL (DS*10H)+1001H → BH
(DS*10H)+1000H → BL
8 bits
8 bits
• OPCODE++
– Typically 1 byte, but not always!
– Selects the operation (MOV, ADD, JMP)
W: 1 16 bit transfer
MOD: 11 Register in R/M
REG: 000 AX
R/M: 011 BX
W: 1 16 bit transfer
MOD: 11 Register in R/M
REG: 000 AX
R/M: 011 BX
REG: 000 AX
Data Low: 34H 00110100
Note that we could have used same form as previous example, but we save a byte this way
• Read:
– Chapter 1 (skim protected mode)
– Chapter 2
– Chapter 3
– Chapter 4, sections 1&2, skim remainder
– Skim chapters 5-7
• Problems: see website