code segment
assume cs:code
main:mov ah,1
int 21h
MOV BL,AL
MOV AH,2
MOV DL,13
INT 21H
MOV DL,10
INT 21H
cmp BL,41h
jb lab1
cmp BL,5ah
ja lab2
sub BL,40h
jmp lab3
lab2:cmp BL,61h
jb lab1
cmp BL,7ah
ja lab1
sub BL,60h
lab3:mov ah,0
MOV AL,BL
mov bl,10
div bl
mov cx,ax
mov ah,2
mov dl,cl
add dl,30h
int 21h
mov ah,2
mov dl,ch
add dl,30h
INT 21H
jmp lab4
lab1:mov dl,’*’
mov ah,2
int 21h
lab4:mov ah,4ch
int 21h
code ends
end main
汇编 输出输入字母在英文表中的顺序号
- THE END -
Category: 汇编
0 条评论。