我有試著寫了一個~但是執行EXE檔的時候~他沒有出現東西~QQ
請大大給小弟一點指導~
語法:
INCLUDE Irvine32.inc
.data
prompt BYTE "Enter your name: ",0
MAX = 80 ;max chars to read
stringIn BYTE MAX+1 DUP (?) ;room for null
.code
main PROC
mov edx,OFFSET prompt ;顯示對話,印出edx裡面的字串
mov esi,OFFSET stringIn
mov ecx,MAX ;buffer size - 1
L1:
mov ah,0AH
int 21H
AND byte ptr[esi],1101111b ;清除位元5
inc esi
loop L1
mov edx, OFFSET prompt
call ReadString
call Writestring
call Crlf ;空一行
exit
main ENDP
END main