flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Concatenate strings for printing, [args] common db args,0 ?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20625
Location: In your JS exploiting you and your system
revolution 15 Apr 2025, 11:18
kake_zinger wrote:
I like to define labeled strings like this because it covers both cases at once, depends on whether one uses WriteConsole/File or printf more which one is a better default:
A length specified string is different than a zero terminated string though.
Code:
my_string db 'abc',0,'def',0
.length = $ - my_string - 1    
That results in different outputs for each interpretation.
Post 15 Apr 2025, 11:18
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:  
Goto page Previous  1, 2

< 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.