NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: yoran on June 09, 2019, 01:16:48 PM

Title: How do I remove zero termination from a string
Post by: yoran on June 09, 2019, 01:16:48 PM
I have a zero terminated string (''TEXT",0) and want to remove the zero-termination, how do I do this?
Title: Re: How do I remove zero termination from a string
Post by: debs3759 on June 09, 2019, 05:52:00 PM
Move it one character at a time, and stop when you reach the 0.

What code have you tried? Are you writing a 16-, 32- or 64-bit app? Is it for Windows or Linux?
Title: Re: How do I remove zero termination from a string
Post by: yoran on June 10, 2019, 09:33:03 AM
16 Bit bare bones, and I have a function which I feed a string from a memaddress. However this function takes stringlen instead of zero-termination, so how do I remove the zero-termination?