汇编语言(王爽 )(第四版)实验11
assume cs:code,ds:data
data segment
db "Bwginner's All-purpose Symbolic Instruction Cdoe.",0
data ends
code segment
begin:
mov ax,data
mov ds,ax
mov si,0
call letterc
mov ax,4c00h
int 21h
letterc:
mov al,[si]
cmp al,'a'
jb s
cmp al,'z'
ja s
and al,11011111b
mov [si],al
s:inc si
cmp al,0
jne letterc
ret
code ends
end begin
共有 0 条评论