绝色武魂:急求汇编程序!!!!!!!1

来源:百度文库 编辑:高校问答 时间:2024/05/03 08:02:17
从键盘输入一系列字符,以回车键结束,编程统计其中的非数字字符的个数

那位朋友帮忙写出完整的汇编语言程序啊,多谢啦

data segment
ORG 1000H
mun dw ?
data ends
code segment
assume cs:code,ds:data
start:mov ax,data
mov ds,ax
mov cx,00h
input:mov ah,01h
int 21h
cmp al,08h
jz fin
cmp al,30h
jb tj
cmp al,39h
ja tj
jmp input
tj: inc cx
jmp input
fin: mov [mun],cx
code ends
end start

统计结果存入了MUN(1000H)内存单元