马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
按书上要求写的代码,比较顺利。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:
push ax
push si
push bx
push cx
s:
cmp byte ptr [si],0
je over
cmp byte ptr [si],97
jb s0
cmp byte ptr [si],122
ja s0
mov ax,32
sub [si],ax
s0:
inc si
jmp s
over:
pop cx
pop bx
pop si
pop ax
ret
codesg ends
end begin
|