; Chapter 7 in lab 6Program
1. debug all the programs explained in the course, use DEBUG to track the execution process, and
Further Understanding
2. Program and complete the program in question 7.9 to change the first four letters of each word in the datasg segment to uppercase.
Assume Cs: codesg, SS: stacksg, DS: datasg
Stacksg segment
DW 0, 0, 0, 0, 0, 0
Stacksg ends
Datasg segment
DB '1. display'
DB '2. brows'
DB '3. replace'
DB '4. modify'
Datasg ends
Codesg segment
Start: mov ax, datasg
MoV ds, ax
MoV BX, 0
MoV ax, stacksg
MoV SS, ax
MoV sp, 16
MoV Si, 3
MoV CX, 4
S0: Push CX
Push Si
MoV CX, 4
S: mov Al, [bx + Si]
Add Al, 11011111b
MoV [bx + Si], Al
INC Si
Loop s
Add Bx, 16
Pop Si
Pop CX
Loop S0
MoV ax, 4c00h
Int 21 h
Codesg ends
End start
-D 0b8d: 0
0b8d: 0000 03 00 00 00 00 00 8e 0b-88 05 30 00 7d 0b 02 32 ...... 0
0b8d: 0010 31 2E 20 43 48 52 4f 6c-61 79 20 20 20 20 1. chrolay
0b8d: 0020 32 2E 20 41 51 4E 56 73-20 20 20 20 20 20 2. aqnvs
0b8d: 0030 33 2E 20 51 44 4f 4B 61-63 65 20 20 20 20 3. qdokace
0b8d: 0040 34 2E 20 4C 4E 43 48 66-79 20 20 20 20 20 4. lnchfy