flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > Strings with length in front of them

Author
Thread Post new topic Reply to topic
MrFox



Joined: 17 Aug 2016
Posts: 52
Location: Russia
MrFox 29 Oct 2016, 13:37
Hi, I use strings formatted like:
Code:
S1 dw 5
S2 du 'Hello'    

Is this string format already known or used somehow or is it just my silly invention? Embarassed
Post 29 Oct 2016, 13:37
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 29 Oct 2016, 13:39
Post 29 Oct 2016, 13:39
View user's profile Send private message Visit poster's website Reply with quote
MrFox



Joined: 17 Aug 2016
Posts: 52
Location: Russia
MrFox 29 Oct 2016, 13:43
Wow, thanks!
Post 29 Oct 2016, 13:43
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 29 Oct 2016, 18:57
Also, this is the format of the strings in FreshLib strings library. It uses a little bit more complex format because it handles dynamic strings.
Post 29 Oct 2016, 18:57
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
redsock



Joined: 09 Oct 2009
Posts: 430
Location: Australia
redsock 29 Oct 2016, 20:34
And my HeavyThing string library: https://2ton.com.au/library_as_html/string32.inc.html

Must be a popular choice for a reason then Smile
Post 29 Oct 2016, 20:34
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 29 Oct 2016, 20:48
redsock wrote:
Must be a popular choice for a reason then Smile
Yeah, fasm also uses such string format in its internal tokenizers. And fasmg too.
Post 29 Oct 2016, 20:48
View user's profile Send private message Visit poster's website 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.