flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > macro how get equ size symbols ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1808
Roman 03 Apr 2023, 09:25
Fasmw 1.73
Code:
txt1 equ abc 1,2,3 bcd 2,3 ;17 chars with ,

macro a t { } ;do eq_size = 17
    


using irps or rept or virtual db ?

Code:
txt2 equ for,50 ,13 aff,52
counter = 0
irpv v,txt2 {
                irps reg, v   \{ 
                     display '0'+counter,10,';'
                     counter = counter+1  \}}
;show 1;2;3;4;5;6;7;8;

irpv v,txt2 {
                irp reg, v   \{ 
                     display '0'+counter,10,';'
                     counter = counter+1  \}}
;show 1;2;3;4;
    
Post 03 Apr 2023, 09:25
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 980
Location: Russia
macomics 03 Apr 2023, 10:58
Code:
txt1 equ for,50 ,13 aff,52
virtual at 0
match t, txt1 { irps x, t \{ db \`x, ' '
display \`x, ' ' \}
display 13, 10 }
equ_size = $
end virtual    
But unfortunately it will not be possible to save the spaces.
Post 03 Apr 2023, 10:58
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1808
Roman 03 Apr 2023, 11:25
Thanks.
Post 03 Apr 2023, 11:25
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.