flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > FASMG : stuck once again with mvmacro (mvstruc)...

Author
Thread Post new topic Reply to topic
fabbel



Joined: 30 Oct 2012
Posts: 83
fabbel 11 Mar 2024, 11:14
Hi Tomasz

Trying to get to some calm inx to temporarily disable itself upon invocation...
=> see below snippet :
Code:
include 'utility/xcalm.inc'

calminstruction test
end calminstruction

define test2_off                mvmacro test, test2

calminstruction test2
                display '*** test2'
                display 13
                display 10

                assemble test2_off
end calminstruction

test2

test2
    


=> when running this, I get :
Quote:

flat assembler version g.kcm8
*** test2
*** test2


... I would have expected the 2nd call to 'test2' to fail with 'Error: illegal instruction.', since test2 is disabling itself....
... what am I missing ??

(for ref, if i 'manually' do mvmacro test, test2 before 2nd invocation of test 2, i do get expected behavior... leaving me wondering...)
Post 11 Mar 2024, 11:14
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8340
Location: Kraków, Poland
Tomasz Grysztar 11 Mar 2024, 11:37
There's a bug there. If you replace MVMACRO with PURGE, the second call fails.

I'm testing a fix right now, should be up soon.
Post 11 Mar 2024, 11:37
View user's profile Send private message Visit poster's website Reply with quote
fabbel



Joined: 30 Oct 2012
Posts: 83
fabbel 11 Mar 2024, 11:43
Tx for feedback !


Yep, I had seen that using 'purge' led to expected behavior ..

... waiting for the fix !
tx m8
Post 11 Mar 2024, 11:43
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8340
Location: Kraków, Poland
Tomasz Grysztar 11 Mar 2024, 12:17
Release "kd3c" is ready. I made sure that MVMACRO does the same thing as PURGE with respect to its second operand.

I also needed to update the STRUCT macro, because fixing this bug also exposed a small mistake there that went unnoticed.
Post 11 Mar 2024, 12:17
View user's profile Send private message Visit poster's website Reply with quote
fabbel



Joined: 30 Oct 2012
Posts: 83
fabbel 11 Mar 2024, 13:47
Looks ok now !
Tx !
Post 11 Mar 2024, 13:47
View user's profile Send private message 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.