Microprocessors & Microcontrollers Lab 1.experiment: To Perform 8-Bit Arithmetic Operations Using Debugger
Microprocessors & Microcontrollers Lab 1.experiment: To Perform 8-Bit Arithmetic Operations Using Debugger
1.EXPERIMENT
Introduction to Debugger / XT86 / TASM: 8-bit Arithmetic Operations
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