首页 > 代码库 > 实验6 (datasg段中每个单词的前4个字母改为大写字母。)

实验6 (datasg段中每个单词的前4个字母改为大写字母。)

 
题目在这里,就是要补全
技术分享
 1 assume cs:codesg,ds:datasg,ss:stacksg 2 datasg segment 3     db 1. display       4     db 2. brows         5     db 3. replace       6     db 4. modify        7 datasg ends 8 stacksg segment 9     dw 0,0,0,0,0,0,0,010 stacksg ends11 codesg segment12 start: mov ax,datasg13        mov ds,ax14        mov bx,015        mov ax,stacksg16        mov ss,ax17        mov sp,1618        mov cx,419    s0: push cx20        mov si,021        mov cx,422     s: mov al,[bx+3][si]23        and al,11011111b24        mov [bx+3][si],al25        inc si26        loop s27        add bx,1628        pop cx29        loop s030        mov ax,4c00h31        int 21h32 codesg ends33 end start34  35  36 C:\DOCUME~1\SNUSER>debug sy7-9.exe37 -d0c4e:0 3f38 0C4E:0000  31 2E 20 64 69 73 70 6C-61 79 20 20 20 20 20 20   1. display39 0C4E:0010  32 2E 20 62 72 6F 77 73-20 20 20 20 20 20 20 20   2. brows40 0C4E:0020  33 2E 20 72 65 70 6C 61-63 65 20 20 20 20 20 20   3. replace41 0C4E:0030  34 2E 20 6D 6F 64 69 66-79 20 20 20 20 20 20 20   4. modify42 -g43 Program terminated normally44 -d 0c4e:0 3f45 0C4E:0000  31 2E 20 44 49 53 50 6C-61 79 20 20 20 20 20 20   1. DISPlay46 0C4E:0010  32 2E 20 42 52 4F 57 73-20 20 20 20 20 20 20 20   2. BROWs47 0C4E:0020  33 2E 20 52 45 50 4C 61-63 65 20 20 20 20 20 20   3. REPLace48 0C4E:0030  34 2E 20 4D 4F 44 49 66-79 20 20 20 20 20 20 20   4. MODIfy49 -
答案

 

 1 assume cs:codesg,ss:stacksg,ds:datasg 2  3 stacksg segment 4    dw 0,0,0,0,0,0,0,0 5 stacksg ends 6  7 datasg segment 8    db 1.display  9    db 2.brows 10    db 3.replace 11    db 4.modify 12 datasg ends13 14 codesg segment15    start:16 codesg ends17 18 end start

 

实验6 (datasg段中每个单词的前4个字母改为大写字母。)