PDA

View Full Version : Which Addressing Mode is this? MOV DX, ES:[BX+6]?


kloong
Apr7-09, 11:02 AM
For 8086 assembly language.

chiro
Apr10-09, 03:56 AM
This is known as the segmented model. In this model as far as I know segments overlap every so many bytes (i think its 16 or some power of it). So basically A000:0000 and A001:0000 are not 64Kb apart but actually overlap.

Borek
Apr10-09, 06:06 AM
x:y = 16*x+y

Unless my memory fails me.

kloong
Apr10-09, 06:33 AM
umm.. im thinking if it's register addressing mode, immediate addressing mode, direct addressing mode, register indirect mode or others..

rcgldr
Apr10-09, 10:48 AM
displacement + indirect (register)

it can also be written as

mov dx,es:6[bx]

where 6 could be an 8 bit or 16 bit displacement (offset).

operand = 16 bit memory word at address [es*16 + bx + 6]

kloong
Apr10-09, 12:30 PM
Wow. I never knew there are combined ones. Ok, thank you very much. =)