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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题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

  

以上是关于问题7.6 将datasg 段中每个单词的头一个字母改为大写字母的主要内容,如果未能解决你的问题,请参考以下文章