Reset a string variable to print multitple user inputs in a loop (NASM Assembly)
问题 I'm using a 64 bits Linux system, and I'm trying to use NASM to build a program that asks the user for input, and then prints it. Afterwards, the user can choose to do the same again, or exit. My issue is that the variable 'text', which is used to store the user's input, is not reset at the end of each execution, so something like this happens: User enters text the 1st time: Helloooooooooooooooooooooooooooooo Output: Helloooooooooooooooooooooooooooooo User enters text the 2nd time: Boom!