汇编语言实验11(王爽)编写子程序

若有错误或有问题可评论或加QQ:1270082767
assume cs:codesg
datasg segment
db “Beginner’s All-purpose Symbolic Instruction Code.”,0
datasg ends
codesg segment
begin:mov ax,datasg
mov ds,ax
mov si,0
call letterc
mov ax,4c00h
int 21h
letterc:mov cl,[si]
mov ch,0
jcxz ok
cmp cl,‘a’
jb s0
cmp cl,‘z’
ja s0
and cl,11011111b
mov [si],cl
s0:inc si
jmp short letterc
ok:ret
codesg ends
end begin

你可能感兴趣的:(汇编语言,笔记)