我想獲取用戶名稱並顯示它的問候,我怎樣才能刪除返回鍵,因爲它顯示在下一行的問候語?如何刪除打印時返回鍵
輸出是這樣的:
Hello!
Name
How are you?
我需要它是:
Hello! Name How are you?
。
lea dx, [ANSNAME] ;get the name
mov ah, 0Ah
int 21h
mov byte [ANSNAME], 19h ; initialize name 25 chars max
call CLRSCR
lea dx, [GREET]
mov ah, 09h
int 21h
lea dx, [ANSNAME+2]
mov ah, 09h
int 21h
lea dx, [GREET2]
mov ah, 09h
int 21h
SECTION .data
nextline db 0dh, 0ah, "$"
ANSNAME times 25 db "$",0dh, 0ah,"$"
GREET db "Hello!",0dh,0ah,"$"
GREET2 db "How are you?",0dh,0ah,"$"
我在ANSNAME上刪除它,它沒有工作,它沒有顯示名稱 –