首页 > 代码库 > 汇编-遍历修改

汇编-遍历修改

 

2. 菜单首字母改为大写

技术分享

技术分享
 1 assume cs:codesg,ds:datasg
 2 
 3 datasg segment
 4         db 1.file    
 5         db 2.edit    
 6         db 3.search  
 7         db 4.view    
 8         db 5.options 
 9         db 6.help    
10 datasg ends
11 
12 codesg segment
13   start:mov ax,datasg
14         mov ds,ax
15         mov bx,0
16         mov cx,6
17       s:mov al,[bx+2]
18         and al,11011111b
19         mov [bx+2],al
20         add bx,10
21         loop s
22         nop
23 codesg ends
24 
25 end start
View Code

 

汇编-遍历修改