flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > missing macros |
Author |
|
pjd 15 Jul 2007, 19:41
I've been using the attached file included in my source code but the assembler won't recognize the call to the kernel macro from within the sys_write macro. Also if I add closing braces at the bottom to the match statements at the top (Intended to work like the #ifndef #define #endif sequence in a C program), I get problems claiming that the } is an illegal instruction. Is this a difference between the slightly older manual and the assembler or just something I've missed?
|
|||||||||||
15 Jul 2007, 19:41 |
|
vid 15 Jul 2007, 19:53
you have to "escape" all preprocessor symbols inside inner matches, including brackets:
Code: match a, b { match c,d \{ \} } |
|||
15 Jul 2007, 19:53 |
|
pjd 16 Jul 2007, 08:47
if I stick the backward slash in front of each of the inner brackets the original source file claims the macros used don't exist
|
|||
16 Jul 2007, 08:47 |
|
vid 16 Jul 2007, 10:32
well, maybe because some of matchs doesn't match
|
|||
16 Jul 2007, 10:32 |
|
pjd 17 Jul 2007, 08:49
how do you do do a 'does not match' the manual only mentions 'match =TRUE, DEBUG {}'
How do I get the opposite |
|||
17 Jul 2007, 08:49 |
|
vid 17 Jul 2007, 08:56
Code: else equ 1 match =1, SOMETHING { ... else equ 0 } match =1, else { ... } |
|||
17 Jul 2007, 08:56 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.