NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: yoran on April 14, 2019, 02:47:03 PM

Title: How to add two strings together?
Post by: yoran on April 14, 2019, 02:47:03 PM
How do I add two strings together?
I have:
filename 'name' (don't know if it's zero terminated)
and
extension '.txt',0

How do I add these two together?
Title: Re: How to add two strings together?
Post by: debs3759 on April 14, 2019, 08:23:17 PM
Strictly speaking, you want to concatenate two strings, not add them. You need to create a variable long enough to hold both strings, then add them in the right order. If you still need help, post what you have so we can see what you don't understand.