{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab 0 - Debug A program included with DOS that allows a...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Debug A program included with DOS that allows a programmer to monitor the execution of a program for debugging purposes. Using Debug: Enter Debug A:>DEBUG<enter> - Exit Debug -Q<enter> A:>
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Debug Displaying registers -R<enter> AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0D00 ES=0D00 SS=0D00 CS=0D00 IP=0100 NV UP DI PL NZ NA PO NC 0D00:0100 B80100 MOV AX,0001 Modifying registers -R CX:<enter> CX 0000 :0009<enter> -R CX<enter> CX 0009 :<enter> -
Image of page 2
Debug Assemble command – allows the programmer to enter assembly language instructions into memory. -A 100<enter> 0B3C:0100 MOV AX,1<enter> 0B3C:0103 MOV BX,2<enter> 0B3C:0106 ADD AX,BX<enter> 0B3C:0108 INT 3<enter> 0B3C:0109<enter> -
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Debug Unassemble command - allows the programmer to display the machine code in memory along with their assembly language instructions. -U 100 L1<enter> 0B3C:0100 B80100 MOV AX,1 -U 100 103 0B3C:0100 B80100 MOV AX,1 0B3C:0103 BB0200 MOV BX,2 -
Image of page 4
Debug Go command – allows the programmer to execute instructions found between two given addresses.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.