flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > invoke does not assemble in this context

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4347
Location: Now
edfed 02 Oct 2024, 20:45
in a code like this:
Code:
include 'win32a.inc'
include 'stuff.inc'

soundLoop:
        invoke PlaySoundA,
        ret
                  
    


invoke doesn't assemble, only ret.

i don't find where the macro can be discarded.

in another context, it works, and the only difference i see is the levels of nesting includes
Post 02 Oct 2024, 20:45
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 977
Location: Russia
macomics 03 Oct 2024, 03:47
Code:
$ cat test_invoke.asm
use32
include 'WIN32A.INC'

label PlaySound dword

soundLoop:
        invoke PlaySound,
        ret
$ fasm test_invoke.asm 
flat assembler  version 1.73.32  (16384 kilobytes memory, x64)
2 passes, 7 bytes.
$ hexdump -C test_invoke.bin 
00000000  ff 15 00 00 00 00 c3                              |.......|
00000007
; ff 15 00 00 00 00 - call
; c3 - ret    
Post 03 Oct 2024, 03:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20355
Location: In your JS exploiting you and your system
revolution 03 Oct 2024, 04:20
edfed wrote:
invoke doesn't assemble, only ret.
Show the invoke macro you are using.
Post 03 Oct 2024, 04:20
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 977
Location: Russia
macomics 03 Oct 2024, 06:51
Try this
Code:
; fix_purge.asm
macro fix_purge [args] { forward display `args, 13, 10
purge args }
purge fix fix_purge    
Code:
include 'fix_purge.asm'
use32
include 'WIN32A.INC'

label PlaySound dword
soundLoop:
        invoke  PlaySound,
        ret
    
Post 03 Oct 2024, 06:51
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4347
Location: Now
edfed 05 Oct 2024, 00:43
good idea. but it doesn't show any purge of invoke.

i will try to get the mininal case of this "bug"
Post 05 Oct 2024, 00:43
View user's profile Send private message Visit poster's website 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.