flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > I am not understand clearly weird logic match.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1847
Roman 02 Apr 2023, 13:27
Fasmw 1.73
Code:
Ar3  equ 877
Ar1  equ '575'
Ar2  equ '-343'
Txt1 equ 'abcde'#\
        `Ar3,`Ar3#\ 
         '1234'#\
         Ar1#\
         '%f, sv',Ar1,Ar2 
;convert text as one line. But how x cutoff unnecessary signs(like as #\ or ,) ? 
match x,Txt1 {Txt1 equ x} 

;This logic more clearly and I understand it.
tt equ for 44,42 aff 55
match =for x=aff b, tt { }
;b=55  x=44,42  and match cutoff for and aff

;not clearly understand this logic match
match a b, tt { }
;a=for b=44,42 aff 55

;Weird this
eggs equ for,50 ,13 aff 52
match a b, eggs { display a,13,10 }
;a=for   b=,50 ,13 aff 52 why not b=50 ,13 aff 52 ?

match a=, b, eggs { display b,13,10 }
;a=for   b=50 ,13 aff 52
    


And sometimes match work as if.
Post 02 Apr 2023, 13:27
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.