0% found this document useful (0 votes)
65 views

Microprocessors & Microcontrollers Lab 1.experiment: To Perform 8-Bit Arithmetic Operations Using Debugger

This document provides instructions for performing 8-bit arithmetic operations using a debugger software on a PC loaded with DOSBox. The procedures describe how to open the debugger, mount drives, check register values, write instructions, execute instructions, and observe the output for addition, subtraction, multiplication, and division operations using MOV, ADD, SUB, MUL, and DIV instructions. The result confirms that the 8-bit arithmetic operations were successfully performed.

Uploaded by

Yesudas
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Microprocessors & Microcontrollers Lab 1.experiment: To Perform 8-Bit Arithmetic Operations Using Debugger

This document provides instructions for performing 8-bit arithmetic operations using a debugger software on a PC loaded with DOSBox. The procedures describe how to open the debugger, mount drives, check register values, write instructions, execute instructions, and observe the output for addition, subtraction, multiplication, and division operations using MOV, ADD, SUB, MUL, and DIV instructions. The result confirms that the 8-bit arithmetic operations were successfully performed.

Uploaded by

Yesudas
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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