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