flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > How to.... Please

Author
Thread Post new topic Reply to topic
i7778



Joined: 14 Aug 2011
Posts: 1
i7778
I am create macro like

macro detect_type A
{
if (A eqtype 1)
db 10h
dd A
end if

if (A eqtype [EAX])
db FFh
dd A
end if
}

But, if I'm write block like detect_type [EAX] -> have
db FFh
dd [EAX]

I'm need extract content into brackets [ ... ]
db FFh
dd EAX

P.S. manually check value not workink because may be
detect_type [00401000h+10h]

db FFh
dd 00401000h+10h

Thanks
Post 14 Aug 2011, 10:55
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
move eax's value into a variable.
Post 14 Aug 2011, 15:47
View user's profile Send private message 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. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.