MULTIPLICATION OUTPUT

WRITE THIS IN THE WRITING SIDE OF THE JOURNAL

ADDRESSOPCODELABELMNEMONICSCOMMENT
400021 50 40LXI H,4050H;set memory pointer
400346MOV B,M;move data from to B
40043EMVI A,00;set counter A to 0
40054FMOV C,A;move Acc. to C
400623INX H;increment memory address
400786cont:ADD M;Addition of Acc. and M
4008D2JNC skip;jump if not carry to skip
40090CINR C;content of Reg. C Inc. by 1
400A05skip:DCR B;decrement counter B
400BC2JNZ cont;jump if not carry zero to cont
400C32STA 4052H;content of Acc. copied to Memory location
400D79MOV A,C;take data in Acc.
400E32STA 4053H;content of Acc. copied to Memory location
400F76hlt;Entering 8085 in the HALT state
8085 multiplication program

) Sign Flag is reset: Result is positive
) Zero flag is set: result is set to zero after the execution of arithmetic or logical operation
) auxiliary carry flag is set: there is a carry from bit D3 to D4
) parity flag is set: result stored in accumulator contain even number of 1’s
) carry flag is result: no carry or borrow bit during the execution of arithmetic operation

WRITE THIS IN THE BLANK SIDE OF THE JOURNAL

You cannot copy content of this page

Scroll to Top