Reputation: 3755
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
Upvotes: 4
Views: 14482
Reputation: 11468
@data is a macro for the default data group, which is only relevant if you're not using the FLAT model.
@data
FLAT
The code you provided is typically followed by mov ds, ax, which sets up the data segment register for the current executable.
mov ds, ax
(MSDN reference at @data.)
Upvotes: 5