Assembly mov segments
Are the following assumptions correc开发者_开发问答t in regards to segment usage?
mov ax, [bp] ; Uses SS?
mov ax, disp[bp]; Uses SS?
mov ax, [bp+10h]; Uses SS?
mov ax, [bx+10h]; Uses DS?
Looks right:
By default BX, SI and DI registers work with DS segment register; BP and SP work with SS segment register.
A reference source.
精彩评论