Hey all...
Okay, I've read the archives on this... I've read tutorials as well but for some reason something is just escaping me when trying to use the proc macro to create local-scope variables:


proc testproc
localvar db "This is my string", 24h
enter
lea eax,
mov edx, eax
mov ah, 9
int 21h
return

If I am doing this right (which obviously I'm definately not) I should end up with it printing "This is my string" to the console (I'm using the console FASM)... I think I'm looking at the wrong segment perhaps, but I'm not sure... can someone give me a clue?

Coogle.

PS -- Been using FASM for 3 days, already in love with it.
Posted on 2003-02-20 21:10:12 by coogle
Local variables can be initialized at runtime only.
Actually local variables are assembled inside virtual/end virtual block to obtain variables' offsets.
Posted on 2003-02-21 09:40:58 by wanderer