Professional Documents
Culture Documents
Microprocessors - Douglas v. Hall
Microprocessors - Douglas v. Hall
to run.
key for Program reset. The triangular cursor will
‘move up to the first Instruction to tell you that
the program is ready to run again. Note that the
AV_TEMP is reset to its intial value of 00.
Now, further suppose that Instead of single
stepping through all the instructions, you want
to nin to the DIV instruction and observe the
contents of the registers at that point. To set a
breakpoint on the DIV instruction, press the
key until a. cursor appears in the main
window. Use the aivow keys to move the cursor
to the DIV line, and press the key—Delete character over cursor
‘key—Delete character to le af cursor
keys all at the same
lume. If this does not reset the system, you will
have to remove your disle, tum off the computer,
‘wait about 1 mia, and then reboot the computer.
USING DEBLIG TO EXECUTE AND DEBUG FROGRAMS. 24Using TURBO DEBUGGER to
Debug Programs
REFERENCES,
Hell: Chapter $
Borland TURBO DEBUGGER Manual
EQUIPMENT AND MATERIALS
IBM PC or PS/2-compatible computer
Mouse (highly desirable, but not absolutely
required)
Borland TURBO DEBUGGER Version 2.0 or later,
INTRODUCTION
In Experiment § you created the source file for an
assembly language program, assombied the souree
file to produce a .OBJ file, and tinked the OBJ file to
produce a .EXE file. In this exercise you will use the
Borland TURBO DEBUGGER to run and test your
rogram.
{At the conclusion of this experiment, you should be
able to
1. Use the TURBO DEBUGGER program to load the
[EXE file into memory and run tt.
2. Single step through a program, insert watches on
Variables, and examine and change the contents
of registers or memory locations.
PROCEDURE
2. Insert your work disk in drive A: and close the
drive door.
2. Type A: key to select the
Size/Move command. Use the arrow keys to
‘move the register pane to the upper right corner
of the main window and press the