flat assembler
Message board for the users of flat assembler.

Index > Main > weird fasm compile message

Author
Thread Post new topic Reply to topic
Teehee



Joined: 05 Aug 2009
Posts: 568
Location: Brazil
Teehee
i have a procedure like this:
Code:
bnf_struct:     mov     ebp,esi
                lodsb
                cmp     al,'{'
                jne     .yes
       .repeat: call    bnf_number
                ;...
                jne     .repeat 
                ;...    


and at the line " .repeat: call bnf_number" fasm says me: "invalid macro arguments". If i change the .repeat: label to anyother it works.

i've tried the same piece in a new code file and it works, but in my code it says that Shocked

_________________
Sorry if bad english.
Post 03 Oct 2011, 13:53
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
http://flatassembler.net/docs.php?article=win32

If you included the windows includes then there is the problem, .repeat is a macro and you are passing ": call bnf_number" as argument.
Post 03 Oct 2011, 15:41
View user's profile Send private message Reply with quote
Teehee



Joined: 05 Aug 2009
Posts: 568
Location: Brazil
Teehee
got it, thanks. although the ':' says its a label. humm
Post 03 Oct 2011, 15:42
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1409
Location: Toronto, Canada
AsmGuru62
The error message should include the name of a macro.
Like: "macro 'repeat' has invalid arguments."
Post 03 Oct 2011, 18:03
View user's profile Send private message Send e-mail 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-2020, Tomasz Grysztar.

Powered by rwasa.