我想創建一個程序,它接受輸入並打印出結果,但我無法創建一個空變量,字符串輸入。這裏是我的意思是:x86程序集 - masm32:如何創建一個空字符串變量來將輸入傳輸到並打印
.data
emptyvar db ???? ; I don't know what to do here
.data?
buffer dd 100 dup(?)
.code
start:
lea eax, buffer
push eax
call StdIn ; get input
; NOW HERE IS WHAT I DON'T KNOW WHAT TO DO:
; I know have input, what I want to do is print that result. But where
; do I store the input and how do I print the result?
我知道我可以存儲在一個空變量的整數,我可以打印,但我怎麼可以創建一個空字符串變量?
任何幫助將不勝感激,
問候,
Progrmr
這是爲什麼downvoted? – Progrmr