I wan't to ask, in x86-16
assembly @
symbol is for what ? Can you explain ?
Example :
.data
str db "Hello!", 6, 10, '$'
mov ax, @data ; <- here
mov ds, ax
I wan't to ask, in x86-16
assembly @
symbol is for what ? Can you explain ?
Example :
.data
str db "Hello!", 6, 10, '$'
mov ax, @data ; <- here
mov ds, ax
This is assembly code for the Microsoft Macro Assembler (MASM).
.data
defines the beginning of the data segment.
@data
is the address of the data segment.
Which in this case means that the code is assigning the address of the "Hello!" string to the ds
register.
Note: data
is not a label you can choose, it is a keyword.