问题7.6 将datasg 段中每个单词的头一个字母改为大写字母

assume       cs:codesg,ds:datasg
datasg        segment
db               '1. file         '
db               '2. edit         '
db               '3. search       '
db               '4. view         '
db               '5. options      '
db               '6. help         '
datasg              ends
codesg              segment
start:              mov            ax,datasg
                    mov            ds,ax
                    mov            bx,0
                    mov            cx,6
s:                  mov            al,[bx+3]
                    and             al,11011111b
                    mov            [bx+3],al
                    add              bx,16
                    loop             s
codesg              ends
                    end             start

  

posted @ 2020-02-02 11:13  yyer  阅读(594)  评论(0编辑  收藏  举报