实验11.4
按书上要求写的代码,比较顺利。assume cs:codesgdatasg 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:
push ax
push si
push bx
push cx
s:
cmp byte ptr ,0
je over
cmp byte ptr ,97
jb s0
cmp byte ptr ,122
ja s0
mov ax,32
sub ,ax
s0:
inc si
jmp s
over:
pop cx
pop bx
pop si
pop ax
ret
codesg ends
end begin
页:
[1]