flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 01 Apr 2008, 08:21
It is not clear to me what you want.
Do you want to push the address of name of the macro on to the stack so that you can visually see it in Olly? O think this line is where you have a problem Code: String name,'tmacro ; put into data section with label 'name' |
|||
![]() |
|
karl 01 Apr 2008, 08:34
hmmm no see what string does is
macro String name,[string] { local offset strings#offset db string,0 ; this is placed into data section name equ strings#offset } so when i say String name,'tmacro i want it to be replaced with String name,"Text" but instead it's being replaced with String name,"tmacro" .... so yes, I want the name of the macro to come up in olly. but i don't know how you can put the name of the macro into the macro.... |
|||
![]() |
|
revolution 01 Apr 2008, 09:06
Try something like this:
Code: macro tmacro mac_name,[params] { common macro mac_name,params { String name,`mac_name ; NOTE the ` character push name } Last edited by revolution on 01 Apr 2008, 09:07; edited 1 time in total |
|||
![]() |
|
karl 01 Apr 2008, 09:06
i've changed it to include the name of the macro
macro tmacro name, [params] { macro name params { String string,`name push string } MACRO fix tmacro ENDM fix pop edi } but now when I say MACRO tester param ENDM fasmpre comes out with ;macro tester param{ ; String string,'tester' param ; push string ; ; pop edi} strange, huh? why is the extra 'param' being put in? |
|||
![]() |
|
revolution 01 Apr 2008, 09:20
You need a comma
Code: MACRO tester,param
ENDM Try to use "match" for a better solution to your problem. |
|||
![]() |
|
karl 01 Apr 2008, 09:33
awesome. thanks revolution
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.