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