assume cs:code,ds:data
data segment
  db  'Beginners All-purpose Symbolic Instruction Code.',0
data ends

code segment
begin:
          mov ax,data
          mov ds,ax
          mov si,0
          call letterc

          mov ah,4ch
          int 21h

letterc:
            push ax
 s:
            mov al,[si]
            mov ah,0
            mov cx,ax
            jcxz return
            cmp al,61h
            jb next
            cmp al,91h
            ja next
            and al,11011111b
            mov [si],al
next:
            inc si
            jmp short s

 return:
            pop ax
            ret
code ends
end begin

 

posted on 2018-11-12 13:31  迷心迷  阅读(498)  评论(0编辑  收藏  举报