资治通鉴白话版本最好:这个汇编程序为什么错了?

来源:百度文库 编辑:高考问答 时间:2024/05/12 00:46:55
prognam segment
main proc far
assume cs:prognam
start: mov al,01
int 21h
cmp al,7Ah
ja l
cmp al,61h
jae out_put
l: jmp short start
out_put: sub al,20h
mov dl,al
mov ah,2
int 21h
ret
main endp
prognam ends
end start

DOS输入调用出错了.应是mov ah,01 而不是mov al,01