8 Bit - DIVISION PROG
8 Bit - DIVISION PROG
EXP NO: 4
AIM:To write an assembly language program to implement 8-bit division using 8085 processor.
ALGORITHM:
1) Start the program by loading a register pair with the address of memory location.
7) Store the value of quotient and the reminder in the memory location.
8) Halt.
PROGRAM:
LDA 8501
MOV B, A
LDA 8500
MVI C,00
LOOP: CMP B
JC LOOP1
SUB B
INR C
JMP LOOP
MOV A, C
STA 8503
RST 1
INPUT:-
OUTPUT:-
RESULT: Thus the program was executed successfully using 8085 processor simulator.