EE3751 Class Notes

EE3751 Class Notes - Debug A program included with DOS that...

Info iconThis preview shows pages 1–11. 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 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 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. -T=100 2<enter> AX=0001 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0B3C ES=0B3C SS=0B3C CS=0B3C IP=0103 NV UP EI PL NZ NA PO NC 0B3C:0103 BB0200 MOV BX,0002 AX=0001 BX=0003 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0B3C ES=0B3C SS=0B3C CS=0B3C IP=0106 NV UP EI PL NZ NA PO NC 0B3C:0106 01D8 ADD AX,BX -
Background image of page 6
Debug Dump command (D) - allows the programmer to examine the contents of memory. Fill command (F) - allows the programmer to fill memory with data. Enter command (E) - allows the programmer to modify memory content. -F 100 LF 00<enter> -D 100 LF 0B3C:0100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ……………. -F 110 11F 20 -D 100 11F 0B3C:0100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ……………. 0B3C:0110 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 -F 120 LF 20 -E 120 ‘John Smith’ -D 120 LF 0B3C:0120 4A 6F 68 6E 20 53 6E 69 74 68 20 20 20 20 20 20 John Smith -
Background image of page 7

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

View Full DocumentRight Arrow Icon
Debug Loading programs from a specific file requires two commands, the Name command, N, and the Load command, L. -N A:\PROG1.EXE -L Loading programs upon entering Debug. C:\DEBUG A:\PROG1.EXE
Background image of page 8
Debug Links to useful websites: DEBUG/ASSEMBLY TUTORIAL by Fran Golden http://www.datainstitute.com/deb ug1.htm Rough Guide to Assembly http://www.geocities.com/riskyfrie nds/prog.html Paul Hsieh’s x86 Assembly Language Page http://www.azillionmonkeys.com/ qed/asm.html
Background image of page 9

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

View Full DocumentRight Arrow Icon
Assembly Language Program Series of statements which are either assembly language instructions or directives. Instructions are statements like
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/24/2012 for the course EE 3751 taught by Professor Desouza during the Spring '04 term at LSU.

Page1 / 90

EE3751 Class Notes - Debug A program included with DOS that...

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

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