So I've already multiplied two one byte numbers using one as counter and then repeatedly adding the other, but my teacher says its possible to multiply them by rotating one number to the right 8 times and performing addition when the carry flag is not 0, I haven't been able to perform it and have always got a wrong answer
The code is as follows
C000H : XRA A
MOV D, A
LHLD C030H
MOV E, L
MOV A, H
LXI 0000H
MVI C 08H
DAD H
RRC (JUMP FROM JNZ )
JNC C012H
DAD D
DCR C ( JUMP FROM JNC )
JNZ C00DH
SHLD C032H
HLT
Also this is unrelated but which free mp8085 simulator is the best? I use the one with sc labs but it seems to have some problems where it doesn't carry the higher bit properly