flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Fasmg err: ' mvmacro <xxx>, ?? ' - Tomasz, can u pls check ?

Author
Thread Post new topic Reply to topic
fabbel



Joined: 30 Oct 2012
Posts: 84
fabbel 14 Jun 2023, 14:57
Hi Tomasz

Can u pls consider the below reg. 'last resort interceptor' (??)...
Quote:
doc says :
(...)
An identifier consisting of two question marks can be used to define a special instruction that is called only as last resort, on lines that contain no recognizable instruction. This allows to intercept lines that would otherwise be rejected with "illegal instruction" message due to unknown syntax.
(...)



can u pls clarify why can do :
Code:
mvmacro ??, <some macro>
    

while the below seem to fail - Fasmg complaining with 'Error: invalid identifier.' :
Code:
mvmacro <some macro>, ??
    


Is this intended / on purpose ?


tx
Post 14 Jun 2023, 14:57
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 14 Jun 2023, 15:16
It's an oversight. The "??" identifier is recognized only when used as a definition target - this was done to make a line like "?? +" be intercepted with complete "?? +" text as argument instead of calling "??" macro with "+" argument. But perhaps there's a better solution - I'm going to look into it.


Last edited by Tomasz Grysztar on 14 Jun 2023, 15:21; edited 1 time in total
Post 14 Jun 2023, 15:16
View user's profile Send private message Visit poster's website Reply with quote
fabbel



Joined: 30 Oct 2012
Posts: 84
fabbel 14 Jun 2023, 15:21
ok .. waiting for small update / patch then I presume..

tx
Post 14 Jun 2023, 15:21
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 14 Jun 2023, 16:05
I think I found a good solution. The fix is up.
Post 14 Jun 2023, 16:05
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.