Assembly Lab 3

Source: Internet
Author: User

 

Lab conclusion exercise 1.1.t1.asm Ontology

2. Compile, connect, run, and debug the source program t1.asm.

As shown in the figure, the running result is 36.

3. Change line4 and line 9 to 4, 8. Compile, connect, run, and debug.

4. debug the generated Executable File t1.exe With Debug

Use the R command to view details. The CX value is 0016 H, the DS value is 075ah, the Cs value is 076ah, and the relationship between them (CS) = (DS) + 10 h.

As shown in the figure, the first two bytes of PSP (program segment prefix) are CD 20.

Exercise 21. t2.asm Ontology

2. Compile, connect, and run t2.asm.

 

The result is 36.

3. Modify line 10 and line 7, compile and connect them.

Result: 29

4. Modify line 10 and line 7 again, compile, connect, and run the command.

Result: 36

Extended thinking and analysis

The BH part in register BX stores the value of the control color, and the BL part stores the value of the control result. The DL registers in code 1 and DX registers in Code 2 are used to store the values that control output results.

Summary and experiences

Have a deep understanding of DOS compilation, connection, and tracking. However, DOS software proficiency is lacking.

Assembly Lab 3

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.