标签:
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,0 10 stacksg ends 11 codesg segment 12 start: mov ax,datasg 13 mov ds,ax 14 mov bx,0 15 mov ax,stacksg 16 mov ss,ax 17 mov sp,16 18 mov cx,4 19 s0: push cx 20 mov si,0 21 mov cx,4 22 s: mov al,[bx+3][si] 23 and al,11011111b 24 mov [bx+3][si],al 25 inc si 26 loop s 27 add bx,16 28 pop cx 29 loop s0 30 mov ax,4c00h 31 int 21h 32 codesg ends 33 end start 34 35 36 C:\DOCUME~1\SNUSER>debug sy7-9.exe 37 -d0c4e:0 3f 38 0C4E:0000 31 2E 20 64 69 73 70 6C-61 79 20 20 20 20 20 20 1. display 39 0C4E:0010 32 2E 20 62 72 6F 77 73-20 20 20 20 20 20 20 20 2. brows 40 0C4E:0020 33 2E 20 72 65 70 6C 61-63 65 20 20 20 20 20 20 3. replace 41 0C4E:0030 34 2E 20 6D 6F 64 69 66-79 20 20 20 20 20 20 20 4. modify 42 -g 43 Program terminated normally 44 -d 0c4e:0 3f 45 0C4E:0000 31 2E 20 44 49 53 50 6C-61 79 20 20 20 20 20 20 1. DISPlay 46 0C4E:0010 32 2E 20 42 52 4F 57 73-20 20 20 20 20 20 20 20 2. BROWs 47 0C4E:0020 33 2E 20 52 45 50 4C 61-63 65 20 20 20 20 20 20 3. REPLace 48 0C4E:0030 34 2E 20 4D 4F 44 49 66-79 20 20 20 20 20 20 20 4. MODIfy 49 -
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 ends 13 14 codesg segment 15 start: 16 codesg ends 17 18 end start
实验6 (datasg段中每个单词的前4个字母改为大写字母。)
标签:
原文地址:http://www.cnblogs.com/y0da/p/5840287.html