flat assembler
Message board for the users of flat assembler.

flat assembler > Macroinstructions > problem with proc macro, again.

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1046
Location: Michigan, USA
I have a procedure that takes no arguments, but has locals, for some reason the local variables don't work correctly if there are no 'proc' arguments? Am I doing something wrong or is the 'proc' macro doing something wrong?
MadMatt
Post 28 Jun 2005, 22:19
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7171
Location: Kraków, Poland
Works OK when I try it. Are you using the latest version of macro?
Post 28 Jun 2005, 22:23
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1046
Location: Michigan, USA
Well, I figured out what it was. I was using the local variable directly for an address and, of course, you cant do that with stack variables.

I was doing this:

Code:
proc dosomething
     locals
         true dd 1
     endl

     invoke  ShowCursor, true
endp    


Sorry for the false alarm.
MadMatt
Post 28 Jun 2005, 23:34
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-2019, Tomasz Grysztar.

Powered by rwasa.