0% found this document useful (0 votes)
29 views1 page

Multi

This program loads a value from memory into register E, zeros register D, and uses a loop to rotate the bits in register E right into the carry flag while adding the value of register D if the carry is set, storing the result back in memory at the end.

Uploaded by

rani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

Multi

This program loads a value from memory into register E, zeros register D, and uses a loop to rotate the bits in register E right into the carry flag while adding the value of register D if the carry is set, storing the result back in memory at the end.

Uploaded by

rani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

LXI H,8000H

MOV E,M
MVI D,00H
INX H
MOV A,M
MVI C,08H
LXI H, 0000H
LOOP: RRC
JNC SKIP
DAD D
SKIP: XCHG
DAD H
XCHG
DCR C
JNZ LOOP
SHLD 8050H
HLT

You might also like