flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > bug?

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 20 Dec 2003, 19:30
once you asked why somebody is using
virtual at something
name dd 0
end virtual
when he can use
name = dword something

but code like this:

org 256
name = dword 400
mov [name],100

throws error, "dword" is ignored. It doesnt nor mean
mov [dword name],100
as i first awaited.
Could you explain it please?[/code]
Post 20 Dec 2003, 19:30
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 20 Dec 2003, 20:48
No, I meant you can use "label name dword at something", the construction you have used does something completely different, as in this case "dword" operator applies to the size of number itself, not to the size of data that is labelled by this symbol (for example "name=dword not 0" will give you constant 0FFFFFFFFh, while "name=byte not 0" will give 0FFh).
Post 20 Dec 2003, 20:48
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.