; Wang Shuang compiled the procedures in Chapter 7 Experiment 6 practical courses

Source: Internet
Author: User

; 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.