Lab 0

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

Info iconThis 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:>
Background image of page 1

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

View Full DocumentRight 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> -
Background 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> -
Background image of page 3

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

View Full DocumentRight 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 -
Background image of page 4
Debug ± Go command – allows the programmer to
Background image of page 5

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

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

Page1 / 10

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

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online