Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the @data directive mean in MASM?

Tags:

assembly

masm

I have come 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

like image 984
Scott Davies Avatar asked Sep 07 '25 11:09

Scott Davies


1 Answers

@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.)

like image 65
Zooba Avatar answered Sep 09 '25 16:09

Zooba