You are on page 1of 1

EXPERIMENT–1

DEBUG COMMANDS

AIM: To study DEBUG commands and their use in debugging assembly language
programs.

THEORY: Refer list of common DEBUG commands given below.

1) ASSEMBLE A [ADDRESS]: - It is useful to give the starting offset address


value in instruction pointer register. Then it will be create effective address for
starting instruction.

EXAMPLE: -
-a 0100
0B0E:0100

Here, in example 0100 is the value which is stored in to instruction pointer (IP)
register while 0B0E is code segment base then effective address will be
0B0E0+0100=0B1E0 of first instruction.

Fig 1.1 Assemble A

2) COMPARE C RANGE ADDRESS: -


It is useful for the comparison between the address range which is shown below:

EXAMPLE: -
-a 0100
0B0E:0100 mov ax, 1234
0B0E:0103 mov bx, 5678
0B0E:0106
-t=0100 2
AX=1234 BX=5678

You might also like