flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Macro instruction operand size

Author
Thread Post new topic Reply to topic
rydemstorm



Joined: 31 Oct 2012
Posts: 15
rydemstorm
I would like do it something like this:
macro pushx arg
{
if arg eqtype 32bits
push dword arg; Do something considering arg is 32 bits
else if arg eqtype 16bits
push word arg; Do something considering arg is 16 bits
end if
}
┬┐How can I know the size of operand, event it is a const, address o register?
Post 31 Oct 2012, 21:45
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
The macro argument is simply some text. It has no any "type".
Post 31 Oct 2012, 22:01
View user's profile Send private message Visit poster's website ICQ Number 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-2020, Tomasz Grysztar.

Powered by rwasa.