NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: Franciswalser on February 17, 2023, 11:12:15 AM

Title: Need Help
Post by: Franciswalser on February 17, 2023, 11:12:15 AM
I want to do the following, let's say we have a string called A and it contains 'echo Hello, World!' I want to do this: reverse A, now it is '!dlrow ,elloH ohce' remove the last 5 chars, so it is '!dlrow, elloH' reverse A, so it is 'Hello, World!' and output A, because the user inputted A in the first place in a, it is for a command prompt, so that is why the echo is there. I can do the reversing, but I can't seem to figure out how to remove the last 5 chars from the string.. does anyone know how to do this? It is bare bones (no int21h) and Bits 16. my account access (https://my-accountaccess.com/)
Title: Re: Need Help
Post by: debs3759 on February 17, 2023, 09:07:58 PM
Please post what you have tried already, so we're not just doing your homework for you.