Message board for the users of flat assembler.
> Macroinstructions > simple error but i cann't see it
i was making some macros to work in menuetos and i just added a few macros to a file called macros.inc that had no errors... i wanted the code to look like this
; useful stuff
include 'TXBOX.inc' ; textbox utils
include 'ascl.inc';draw macros
meos_event_control;start one of my macros
;bla bla something happens when you hit a key
;bla bla the same with buttons
;etc etc you know the rest...
this are my macros (this is not the whole file... you can find the hole file in the tinypad sources (Menuetos project)
mov eax,17 ; get id
now when i try to compile this, appears an error related to some structures that i never touched... invalid macro arguments... in the declaration of structures at the end of the page... how is that posible if i never touched them... is there something about the macros that i didn't know (very posible)
|11 Aug 2005, 00:31||
You have redefined the "end" keyword as a macroinstruction, while it's the assembler's directive - perhaps those structures use it. But since the "end" directive always need the name of type of structure to follow it, it's possible to distinguish it from your "end" macro. Try defining it this way:
macro end param match any, param \