flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > missing macros

Author
Thread Post new topic Reply to topic
pjd



Joined: 15 Jul 2007
Posts: 47
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?


Description:
Download
Filename: source.txt
Filesize: 762 Bytes
Downloaded: 413 Time(s)

Post 15 Jul 2007, 19:41
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
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 \{
  \}

}    
Post 15 Jul 2007, 19:53
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
pjd



Joined: 15 Jul 2007
Posts: 47
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
Post 16 Jul 2007, 08:47
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 16 Jul 2007, 10:32
well, maybe because some of matchs doesn't match Smile
Post 16 Jul 2007, 10:32
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
pjd



Joined: 15 Jul 2007
Posts: 47
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
Post 17 Jul 2007, 08:49
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 17 Jul 2007, 08:56
Code:
else equ 1
match =1, SOMETHING {
  ...
  else equ 0
}
match =1, else {
  ...
}    
Post 17 Jul 2007, 08:56
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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.