Class_Notes_Set_1

Class_Notes_Set_1 - Debug A program included with DOS that...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Debug ± A program included with DOS that allows programmer to monitor the execution of a programmer to monitor the execution of a program for debugging purposes. sing Debug: ± 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 odifying registers ± Modifying registers -R CX:<enter> CX 0000 009<enter> :0009<enter> -R CX<enter> CX 0009 :<enter> -
Background image of page 2
ebug Debug ± Assemble command – allows the programmer enter assembly language instructions into to enter assembly language instructions into memory. -A 100<enter> 0B3C:0100 MOV AX,1<enter> B3C:0103 MOV BX 2<enter> 0B3C:0103 MOV BX,2<enter> 0B3C:0106 ADD AX,BX<enter> 0B3C:0108 INT 3<enter> B3C:0109<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 L 1<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 execute instructions found between two given addresses. -G=100 108<enter> AX=0004 BX=0003 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 S=0B3C ES=0B3C SS=0B3C CS=0B3C IP=0108 NV UP EI PL NZ NA PO NC DS 0B3C ES 0B3C SS 0B3C CS 0B3C IP 0108 NV UP EI PL NZ NA PO NC 0B3C:0108 CC INT 3
Background image of page 5

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

View Full DocumentRight Arrow Icon
Debug ± Trace command - allows the programmer to trace through the execution of a program one or more instructions at a time to verify the effect the program has on registers and/or data.
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

Class_Notes_Set_1 - Debug A program included with DOS that...

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

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