| 
 | 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
 本帖最后由 china0008 于 2011-2-14 21:08 编辑  
- assume cs:a,ds:b
 
 -     b segment
 
  
-   db '54156ibm'
 
 -   db '5413354abc'
 
 -   db '354  dos'
 
 -   db '25454sdfvax'
 
  
-     b ends
 
  
 
-    a segment
 
  
- w:   mov ax,b
 
 -      mov ds,ax
 
 -      mov cx,3
 
 -      mov bx,5
 
 - s1:   mov al,[bx+0]
 
 -       and al,11011111b
 
 -       mov [bx+0],al
 
 -       inc bx
 
 -      loop s1
 
  
 
-       mov cx,3
 
 -       mov bx,7
 
 - s2:   mov al,[bx+10h]
 
 -       and al,11011111b
 
 -       mov [bx+10h],al
 
 -       inc bx
 
 -      loop s2
 
  
-      mov cx,3
 
 -      mov bx,5
 
 - s:   mov al,[bx+20h]
 
 -      and al,11011111b
 
 -      mov [bx+20h],al
 
 -      inc bx
 
 -      loop s
 
  
-      mov cx,3
 
 -      mov bx,8
 
 - s3:  mov al,[bx+30h]
 
 -      and al,11011111b
 
 -      mov [bx+30h],al
 
 -      inc bx
 
 -      loop s3
 
  
-    mov ax,4c00h
 
 -    int 21h
 
 -     a ends
 
 -   end w   
 
 
  复制代码 这段代码的目的是把定义的4段字符数据最后三个字母变成大写的。 可我编译后,只能将ibm,dos变成大写。自己弄了好久,搞不定。问题到底出在哪了? |   
 
 
 
 |