flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman 19 Mar 2023, 07:09
This topic about new version upcomming Fasmw.
And New features. My first question, when releasing next version Fasmw? And what new features upcomming? |
|||
![]() |
|
revolution 19 Mar 2023, 07:12
Are you asking generally for fasm or only about the IDE fasmw?
|
|||
![]() |
|
Roman 19 Mar 2023, 07:29
Generally Fasm.
But IDE enteresting too. |
|||
![]() |
|
edfed 19 Mar 2023, 09:04
in the ide, really good thing is to have a side foldable treeview with capacity to open files as new tabs.
|
|||
![]() |
|
Roman 25 Mar 2023, 10:30
Exist equ.
But not exist neq. Code: V1 equ eax T neq V1 ;mean store name V1 Display T ;get V1 not eax ;if we do split chars and numbers match e=0, T {display e} ;we get V, not eax! |
|||
![]() |
|
Tomasz Grysztar 25 Mar 2023, 11:12
Roman wrote: Exist equ. Code: define T V1 |
|||
![]() |
|
Roman 25 Mar 2023, 12:10
Code: V1 equ eax V2 equ ebx define T V1 display T ;get V1 ;But how get this ? T+1=V2 ;? or how using T in rept and get V1 and V2 ? And how store fasm preprocessor V1 and V2 ? I mean its table offset or pointers to V1 and V2. |
|||
![]() |
|
Tomasz Grysztar 25 Mar 2023, 13:11
To fasm's preprocessor "V1" is an indivisible token. You cannot split it unless you keep it split in advance, by manually defining separate parts:
Code: V1 equ eax V2 equ ebx T equ V#1 match base#number, T { rept 1 next:number+1 \{ display V\#next \} } |
|||
![]() |
|
Roman 25 Mar 2023, 14:39
Thanks.
Little changed example. Code: define www oo.@#2 match base#number, www { rept 2 next:number \{ display `base\#\`#next,13,10 \} } ;displayed oo.@2 oo.@3 |
|||
![]() |
|
Roman 25 Mar 2023, 15:10
V1 equ eax
V2 equ ebx T equ V#1 ;This i am understood. But how do in macro to define T, because macro using # ? Code: macro vequ a,e,[p] { ii equ 0 forward rept 1 x:ii+1 \{ ii equ x a#e#\#x equ p ;i not understood how define num_oo.@2 oo.@#2 define num_#a#e#\#x a#e#\\#x ;now this is right variant. \} } display num_oo.@2 ;get empty Last edited by Roman on 25 Mar 2023, 17:52; edited 1 time in total |
|||
![]() |
|
Tomasz Grysztar 25 Mar 2023, 15:47
Add "\" before "#" for each additional enclosure you do. If you put "T equ V#1" inside a macro, it should become "T equ V\#1", and if you put it inside a REPT block inside a macro, it should become "T equ V\\#1", etc. The "\" character prevents the token from being processed in a macro block, but each time this happens, one "\" is cut off.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.