下面的代码要求用户输入整数,代码会将同一组整数吐回给用户。
include irvine32.inc
.data
input dword ?
prompt1 byte "Input your numbers: ",0
.code
mWriteNum Macro input
push ecx
push eax
mov eax, offset input
call writedec
pop eax
push ecx
endM
mReadInput MACRO input
push ecx
push eax
mov eax, offset input
mov ecx, sizeof input
call Readint
mov input, eax
pop eax
pop ecx
endM
main proc
call clrscr
mov edx, offset prompt1
call writeString
mReadInput input
call crlf
mWriteNum input
exit
main ENDP
end main
然而,这就是结果:
Input your numbers: 123
4210688
我在这做什么?请帮忙。感谢