简体   繁体   中英

Assembly mov segments

Are the following assumptions correct 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM