flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Match or macro parse ini or xml to fasm text data.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1866
Roman 01 Jul 2022, 10:44
Could fasmw 1.73 parse text to data ?
Code:
;Example. Input text from file xml.inc
f1 equ <Color>0x30303000
f2 equ <recipe name="broad" preptime="5min" cooktime="180min">

;fasm match or macro translate to data
macro xmlGet

xmlGet f1,Color
xmlGet f2,recipe

outColor dd 0x30303000
name db "broad",0
preptime db "5min",0
cooktime db "180min",0
    

I show idea include text file *.ini or *.xml, to create fasm data.
Very handfull for games or User Graphic Interface.


Last edited by Roman on 01 Jul 2022, 11:13; edited 2 times in total
Post 01 Jul 2022, 10:44
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1866
Roman 01 Jul 2022, 11:05
How parse xml from asm code i know.
Post 01 Jul 2022, 11:05
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.