NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
How do I remove zero termination from a string
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do I remove zero termination from a string (Read 9998 times)
yoran
Jr. Member
Posts: 19
How do I remove zero termination from a string
«
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?
«
Last Edit: June 09, 2019, 03:52:00 PM by yoran
»
Logged
debs3759
Global Moderator
Full Member
Posts: 224
Country:
Re: How do I remove zero termination from a string
«
Reply #1 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?
Logged
My graphics card database:
www.gpuzoo.com
yoran
Jr. Member
Posts: 19
Re: How do I remove zero termination from a string
«
Reply #2 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?
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
How do I remove zero termination from a string