Question: Start Debug, by going in to the MS-DOS window and entering DEBUG[enter] This may require a bit more than just this: You will want to
Start Debug, by going in to the MS-DOS window and entering DEBUG[enter] This may require a bit more than just this:
You will want to run this inside of DOSBOX(installed from https://www.dosbox.com/download.php?main=1)
The debug application itself is available at in the Week 9 debug link
Once you have entered Debug record the contents of the following registers: CS ____________ (Segment Value) IP ______________ (Offset Address)
Do the following in Debug: Type in those that are in BOLD [enter] is the one key
| - A 100 | |
| ??:0100 | Mov AX,1 |
| ??:0103 | Mov BX,2 |
| ??:0106 | Mov CX,3 |
| ??:0109 | ADD AX,BX |
| ??:010B | ADD AX,CX |
| ??:010D | INT 3 |
| ??:010E | [enter] |
List the current contents of the following registers before program execution. (-R) IP _____________ CS _____________ AX _____________ BX _____________ CX ____________ DX ____________
Run the Program. (- G )
List the current contents of the following registers after program execution. IP _____________ CS _____________ AX _____________ BX _____________ CX ____________ DX ___________
The following is a table indicating the Flag descriptions and reflected values
| Over Flow Flag | 1 = OV 0 = NV | Zero Flag | 1 = ZR 0 = NZ |
| Direction Flag | 1 = DN 0 = UP | Auxillary Flag | 1 = AC 0 = NA |
| Interrupt Flag | 1 = EI 0 = DI | Parity Flag | 1 = PE 0 = PO |
| Sign Flag | 1 = NG 0 = PL | Carry Flag | 1 = CY 0 = NC |
What is the value of the Status Flags at this time. List the Flags and their value. OVER FLOW ______ Zero ______ Direction______ Auxillary ______ Interrupt ______ Sign ______Carry ______
How can you execute the program line by line? Why would you desire to?
Load a text file you have available in to debug __________________ name of file
What do you see when you perform the dump command? (briefly describe)
Load a .com or .exe file you have available in to debug __________________ name of file
What do you see when you perform the dump command? (briefly describe)
What do you see when you perform the unassemble command? (briefly describe)
Load another type of file you have available in to debug __________________ name of file
What do you see when you perform the dump command? (briefly describe)
Start Debug again, by going in to the MS-DOS window and entering DEBUG
Once you have entered Debug record the contents of the following registers: CS _____________ (Segment Value) IP ______________ (Offset Address)
Enter the following program
| - A 100 | |
| ??:0100 | Mov AX,AAFF |
| ??:0103 | Mov BX,BB11 |
| ??:0106 | Mov CX,CC00 |
| ??:0109 | Mov DX,DD22 |
| ??:010C | Mov CX,DX |
| ??:010E | Mov CL,BH |
| ??:0110 | ADD AL,BL |
| ??:0112 | ADD BX,AX |
| ??:0114 | ADD BX,DX |
| ??:0116 | ADD BL,CH |
| ??:0118 | INT 3 |
| ??:0119 | [enter] |
What are the expected contents of the following registers after the execution of the first 4 instructions AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
What are the observed contents of the following registers after the execution of the first 4 instructions AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
What is the expected result of the instruction MOV CX,DX AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
What is the observed results of the instruction MOV CX,DX AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
From the current values. What is the expected result of the instruction MOV CL,BH AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
What is the observed results of the instruction MOV CL,BH AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
From the current values. What is the expected result of the instruction ADD AL,BL AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
What is the observed results of the instruction ADD AL,BL AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
From the current values. What is the expected result of the instruction ADD BX,AX AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
What is the observed results of the instruction ADD BX,AX AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
From the current values. What is the expected result of the instruction ADD BX,DX AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
What is the observed results of the instruction ADD BX,DX AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
From the current values. What is the expected result of the instruction ADD BL,CH AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
What is the observed results of the instruction ADD BL,CH AX _____________ BX _____________ CX ____________ DX ___________ IP ___________
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
