Professional Documents
Culture Documents
Address Modes 2
Address Modes 2
Language
Lecture-
Addressing Modes
SIZE MISMATCH ERRORS
We have done very elementary data access till now. Assume that the
numbers we had were 100 and not just three. This way of adding
them will cost us 200 instructions
There must be some method to do a task repeatedly on data
placed in consecutive memory cells
The key to this is the need for some register that can hold the
address of data
jnz
Offset Addressing
mov ax,[num1]
Addressing Modes
Register Indirect
Base + Index
mov ax,[bx+si]
Addressing Modes
mov ax,[bx+si+num1]
Addressing Modes
Instruction Opcode
mov ax,[cs:bx] 2E9B07
mov ax,[es:bx] 268B07
mov ax,[ss:bx] 368B07
mov ax,[bx] 8B07
By default bx has tied with DS segment.
If we want to use bx In CS segment we
write it in above format called segment
override