flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Match do.some?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1766
Roman 24 Jul 2024, 03:40
Fasmw 1.73
I try split do.some to do and some
Code:
match c=.  b,  do.some { display b}
    

I NOT get any display. Why?
Post 24 Jul 2024, 03:40
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 24 Jul 2024, 04:07
The dot (.) is not a separator character. It acts just like a digit or letter.

"do9some" can't be split on '9'.
"doZsome" can't be split on 'Z'.
"do.some" can't be split on '.'.
Post 24 Jul 2024, 04:07
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1766
Roman 24 Jul 2024, 04:24
Why not?
I not see any problems do split.
How I understood this needed recompiled fasm source code and add new feature for match.
I need symbols.!? @_
Or add to Fasmw new command split x. b, some text {}


Last edited by Roman on 24 Jul 2024, 04:29; edited 1 time in total
Post 24 Jul 2024, 04:24
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 24 Jul 2024, 04:28
All the symbol characters are in the file "tables.inc"
Code:
symbol_characters db 27
 db 9,0Ah,0Dh,1Ah,20h,'+-/*=<>()[]{}:,|&~#`;\'    
If it isn't on that list then you can use it to split with match.
Post 24 Jul 2024, 04:28
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1766
Roman 24 Jul 2024, 06:11
Quote:

symbol_characters db 27
db 9,0Ah,0Dh,1Ah,20h,'+-/*=<>()[]{}:,|&~#`;\'

I do and recompiled fasmw sources:
Code:
symbol_characters db 27+2
 db 9,0Ah,0Dh,1Ah,20h,'+-/*=<>()[]{}:,|&~#`;\._' 
    

Now show display b. But ._ become as special symbols.
match c =. b, do.some { display b}

But in some code I get new problems and errors.
And now in names fasm using ._ as special like () or =
That do error if name "some.a1"
Code:
macro bitmap label,bitmap_file ;fasm get error bitmap_file invalid argument because _
 { local data,size
   label dd RVA data,size,0,0
   data file bitmap_file:0Eh
   size = $ - data
   align 4 }
    
Post 24 Jul 2024, 06:11
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.