习题2.37(80x86版)
.model small
.data
String DB 255,0,255 DUP('$'),'$'
.code
main PROC
mov ax,@data
mov ds,ax
mov ah,0ah
mov dx,OFFSET String
int 21h
mov si,OFFSET String+2
AGAIN:
cmp [si],'$'
jz DISPLAY
cmp [si],'a'
js DONOTHING
cmp [si],7bh
jns DONOTHING
sub [si],20h
DONOTHING:
inc si
jmp AGAIN
DISPLAY:
mov ah,09h
mov dx,OFFSET String +2
int 21h
mov ah,4ch
int 21h
main ENDP
END main