call ReadString
call Writestring
call Crlf
這三行沒有把副程式寫出來...?
不知您用的是什麼組合語言軟體 ?
mov edx, OFFSET prompt
相當於
lea edx,prompt ;把prompt變數的偏移位址傳入edx,使prompt變成鍵盤的緩衝區
這一段
語法:
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
不知目地為何 ??
如是要 "顯示對話,印出edx裡面的字串"
請參考前面講的
語法:
ShowStr MACRO message
mov AH ,09H
lea EDX,message
int 21H
ENDM
...
ShowStr prompt
mov ah,09h
lea edx,**要顯示的字串** ;獲得其偏移位址
int 21h