flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > 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
Strings with length in front of them
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: 14502
Location: WTC Building 7
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
Wow, thanks!
Post 29 Oct 2016, 13:43
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3415
Location: Bulgaria
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: 249
Location: Australia
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
Assembly Artist


Joined: 16 Jun 2003
Posts: 6195
Location: Kraków, Poland

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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.