Experiment 3 programming, compilation, connection, and tracking

Source: Internet
Author: User

Task 1

Compile the Assembly source code and source code

 

 

This experiment involves a wide range of extended ideas and analysis, including the functions of each line of assembly instructions and the functions implemented by the program.

The running results of the source code are different, and different values are displayed.

 

(1) As shown in, the running result is 36.

 

Next, modify the numbers as required, reassemble them, and observe the results.

(2) expected result 11 is displayed.

 

 

 

(3) verify that it meets (CS) = (DS) + 10 h

 

 

(4) is to use the U command disassembly to observe the results

 

 

(5) use the t. p command to perform one-step debugging and observe the result.

 

Task 2

Compile the Assembly source program in the same way, such:

 

Compile as required and find different red values.

 

A problem occurs during dosbox running. The output in the upper-left corner is not displayed. You need the CLS command to clear the screen and then proceed to the next step.

Personal summary and extended thinking:

Contact Lab 1 and find that you can change the image and color through some operations.

The assembly language course requires some basic language and number-based knowledge. At the same time, many questions can be found in the experiment.

We need to be more familiar with dosbox to facilitate experiment learning and exploration.

 

Experiment 3 programming, compilation, connection, and tracking

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.