开发者

What does the @data directive mean in MASM?

开发者 https://www.devze.com 2023-02-09 07:30 出处:网络
I have c开发者_JAVA技巧ome across the following directive in some assembly code: movax, @data I\'ve gone through my assembler book and tried some Googl-ing, but can\'t find a definition.

I have c开发者_JAVA技巧ome across the following directive in some assembly code:

mov    ax, @data

I've gone through my assembler book and tried some Googl-ing, but can't find a definition.

Thanks,

Scott


@data is a macro for the default data group, which is only relevant if you're not using the FLAT model.

The code you provided is typically followed by mov ds, ax, which sets up the data segment register for the current executable.

(MSDN reference at @data.)

0

精彩评论

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