好吧,经过努力,终于调试好了
.model small
.data
infon db 0dh,0ah,'Please input a letter: $'
Y db 0dh,0ah,'Lowercase letter! $'
N db 0dh,0ah,' capital letter!Its little letter is $' ;这里最后少了一个美元符号
.code
start:
mov ax, @data
mov ds, ax
mov dx,offset infon
mov ah,9h
int 21h
mov ah,1
int 21h
push ax
cmp al,61h
jge yes
jl no
yes:
mov dx,offset Y
mov ah,9h
int 21h
jmp done
no:
mov dx,offset N
mov ah,9h
int 21h
pop ax
add al,20h
mov dl,al
mov ah,2
int 21h
done:
mov ax,4c00h
int 21h
end start
好吧,经过努力,终于调试好了
.model small
.data
infon db 0dh,0ah,'Please input a letter: $'
Y db 0dh,0ah,'Lowercase letter! $'
N db 0dh,0ah,' capital letter!Its little letter is $' ;这里最后少了一个美元符号
.code
start:
mov ax, @data
mov ds, ax
mov dx,offset infon
mov ah,9h
int 21h
mov ah,1
int 21h
push ax
cmp al,61h
jge yes
jl no
yes:
mov dx,offset Y
mov ah,9h
int 21h
jmp done
no:
mov dx,offset N
mov ah,9h
int 21h
pop ax
add al,20h
mov dl,al
mov ah,2
int 21h
done:
mov ax,4c00h
int 21h
end start
举报