[分享] 汇编的课后作业程序
输入任一小写字母,求其前导字符和后续字符,并连续按序输出这三个字符.
希望对你们有所帮助~~@``@
code segment
assume cs:code
start:
mov dl,0
mov ah,01h
int 21h
cmp al,61h
jl exit
cmp al,7ah
jg exit
dec al
mov dl,al
mov ah,02h
int 21h
inc al
mov dl,al
int 21h
inc al
mov dl,al
int 21h
exit:
mov ah,4ch
int 21h
code ends
end start