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

Program Name

Write a Assembly Language Program for Multiplication Of Two 8 Bit Numbers .
Theory
Instruction Mnemonic Operand Comments
LDA 8101 Load Accumulator with contents from memory address 8101
MOV C,A Move contents of accumulator and carry to register C
LDA 8100 Load Accumulator with contents from memory address 8100
MOV B,A Move contents of accumulator and carry to register B
XRA A The content of accumulator are exclusive OR with itself
MOV D,A Move contents of accumulator and carry to register D
ADD B Add the content of register B with the contents of accumulator
JNC XY Jump to memory address 800F if the carry flag is set to 0
INR D The contents of register D are incremented by 1 and the result is stored in register D
DCR C The contents of register C are decremented by 1 and the result is stored in register C
JNZ YZ Jump to memory address 800A if the zero flag is 0
STA 8102 The contents of accumulator are copied into the memory address 8102
MOV A,D Move contents of register D and carry to accumulator
STA 8103 The contents of accumulator are copied into the memory address 8103
HLT stop
Program Code


Online compiler for 8085 Microprocess Compiler


Home     Back