You are on page 1of 4

MICROPROCESSORS & MICROCONTROLLERS LAB

1.EXPERIMENT
Introduction to Debugger / XT86 / TASM: 8-bit Arithmetic Operations

AIM: To perform 8-bit arithmetic operations using Debugger.

EQUIPMENT REQUIRED:PC Loaded with DOSBox Debugger Software.

PROCEDURE:
1) Open Debugger Software.
2) Then a command window is opened, then type
mount drive drive:\
Eg: mount c c:\
and then press enter.
3) After that type
drive:
Eg : c:
and then press enter
4) Debug //to debug
5) –R or –r // To check the values stored in registers.
6) –A or –a //To write the instructions
7) –T or –t //To execute the given instructions.
8) Finally, note down the output.

ADDITION OPERATION:

MOV AL, 02
MOV BL, 04
ADD AL, BL

OUTPUT:
AX=0006
SUBTRACTION OPERATION:

MOV AL, 06
MOV BL, 04
SUB AL, BL

OUTPUT:
AX=0002
MULTIPLICATION OPERATION:

MOV AL, 04
MOV BL, 02
MUL BL

OUTPUT:
AX=0008
DIVISION OPERATION:

MOV AL, 04
MOV BL, 02
DIV BL

OUTPUT:
AX=0002

RESULT: Hence, the 8-bit arithmetic operations are performed.

You might also like