flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
pelaillo 06 Nov 2004, 15:07
pushd is not a macro, it is an instruction. Afaik, in order to push a non immediate offset (one that cannot be calculated at compile time), you will need lea as you do. The same construct is used by MASM when you use addr, the difference is that eax will be used.
|
|||
![]() |
|
Tomasz Grysztar 06 Nov 2004, 16:03
It should be
Code: stdcall _foo,eax,19,ecx,addr esi+_is.bar,addr esi+_is.tar |
|||
![]() |
|
revolution 06 Nov 2004, 16:45
Oh yeah, I can see how it works now.
I had copied the PUSHD macro to my code but omitted to copy the line "addr equ". The error I got was actually "addr symbol undefined", but I did not know because the error does not explicitly say which symbol was undefined. Actually, since it came up, is it possible to get the error function in FASM to print which symbol it cannot find when such an error occurs? Sometimes I find that a long stdcall line with many symbols can make tracing a "symbol undefined" error troublesome. |
|||
![]() |
|
pelaillo 06 Nov 2004, 16:50
Where`s pushd macro?
|
|||
![]() |
|
revolution 06 Nov 2004, 19:57
Quote:
|
|||
![]() |
|
pelaillo 06 Nov 2004, 21:11
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.