代码问题求助
stack segment stackdb 200 dup(0)
stack ends
data segment
x db '0'
data ends
code segment
assume cs:code,ds:data,ss:stack
start: mov ax,data
mov ds,ax
sub ax,ax
mov bh,0
mov dh,0
mov bl,0
mov cx,10
aa1: cmp cx,0
jz stop
mov ah,1
int 21h
cmp al,20h
jb stop
cmp al,'0'
jb cc2
cmp al,'9'
ja cc1
inc bh
jmp next1
cc1: cmp al,'a'
jb cc2
cmp al,'z'
jb next
cmp al,'a'
jb cc2
cmp al,'z'
ja cc2
next: inc bl
jmp next1
cc2: inc dh
next1: loop aa1
stop:mov ah,2
mov dl,bh
add dl,x
int 21h
mov ah,2
mov dl,bl
add dl,x
int 21h
mov ah,2
mov dl,dh
add dl,x
int 21h
mov ax,4c00h
int 21h
code ends
end start
为啥把add bl,x去掉后运行错误呢,作用是啥
页:
[1]