鲁哥学汇编 发表于 2013-1-9 21:34:55

大家来看我实验11这样写 是不是更简单 更精简

assume cs:code
datasg segment
db"Beginner's All-purpose Symbilic 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:mov cx,50
   
   
         s:jcxz s1
         mov al,
         cmp al,61h   低于小写a则跳转
                   jb s0
                   cmp al,7Ah   高于小写z则跳转
                   ja s0
                   and al,11011111B
                   mov ,al          
                s0:inc si
               loop s
               
               s1:ret
               
               codeseg ends
               end begin

鲁哥学汇编 发表于 2013-1-9 21:39:27

搓    刚发完贴就发现了个好大的BUG:L

s0512 发表于 2013-1-9 22:08:39

最近运气都很好,怎么60%都没中呢
页: [1]
查看完整版本: 大家来看我实验11这样写 是不是更简单 更精简