开发者

8086 assembly language

开发者 https://www.devze.com 2023-02-28 17:56 出处:网络
what is the significance of mov ax,@dat开发者_Python百科a Why do we write it?Usually that line would be followed by:

what is the significance of

mov ax,@dat开发者_Python百科a

Why do we write it?


Usually that line would be followed by:

mov ds,ax

E.g.:

mov ax,@data
mov ds,ax

...which sets the ds (data segment) register to point to the data segment created by the program launcher.

I'm not having much luck finding a good link for you other than the WP link above (my search-fu must be weak this morning), but basically, the x86 memory architecture is a segmented architecture, where different segments can be defined as having separate purposes (code, data, statically-initialized data, etc.). The processor then does some useful things for us, like preventing our executing data rather than code.

0

精彩评论

暂无评论...
验证码 换一张
取 消