Micro processor Lab Manual / Division Of Two 8 Bit Numbers ALP

Program Name

Write a Assembly Language Program for Division Of Two 8 Bit Numbers .
Theory
Instruction Mnemonic Operand Comments
LDA 8101 Load Accumulator with contents from memory address 8101
MOV B,A Move contents of accumulator and carry to register B
LDA 8100 Load Accumulator with contents from memory address 8100
MVI C,00 Move immediately data to register C
CMP B Compare contents of accumulator with register B (Back ground Subtraction)
JC XY The program sequence is transferred to address 8012 if carry flag is set to 1
SUB B Subtract the content of a register B from the content of accumulator and store the result in accumulator.
INR C The contents of register C are incremented by 1 and the result is stored in register C
JMP YZ The program sequence is transferred to the memory location 8009
STA 8103 The contents of accumulator are copied into the memory address 8103
MOV A,C Move contents of register C and carry to accumulator
STA 8102 The contents of accumulator are copied into the memory address 8102
HLT stop
Program Code


Online compiler for 8085 Microprocess Compiler


Home     Back