ITECOMPSYSL Activity 1 Debug Familiarization
ITECOMPSYSL Activity 1 Debug Familiarization
BASIC INFORMATION
DOSDEBUG.COM
DOS offer a debugging utility as one of its internal commands. The DEBUG program can
be use to:
• Provide a controlled testing environment so you can monitor and control the
execution of program.
• Load, alter or display any file
• Execute object files.
• Object files are executable programs in machine language format.
DEBUG_COMMMANDS
1.5 Materials/Equipment
Figure 1. Title
1.7 Procedure/s
1. Invoke DEBUG from the PC’s RAMDRIVE. Write down the command you use.
_____________DEBUG___________________________________________________.
2. Investigate the register using the R Command. The R ( register ) has common
function.
Function 1: R
It display the hexadecimal of all the registers, plus the alphabetic flag
settings and the next instruction to be executed.
General-Purpose Registers
AX=004C
BX=0000
CX=0000
DX=0000
SP=00FD
BP=0000
SI=0000
DI=0000
IP=0100
c. Segment Registers
DS=073F
ES=073F
SS=073F
CS=073F
3. Change the contents of the CX register to 1352. Write down the complete DEBUG
command that you use.
-R CX
:1352
To write a file, it must first be initialized with the N command. The N command
initialized a file name in the memory before using the load or write command.
b. A
ASSEMBLE
c. N
NAME
WRITE
e. T
TRACE
8. Explain the method you use in determining the number of bytes to be saved for a
program.
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
1.8.4 Conclusion/s
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Criteria Grade