multiply: 05h and 06h i.e. 05h*06h= 1Eh
MVI B,06H [move 06h in
register B]
MVI C,05H [move 05h in
register C]
LABEL: [name of
loop]
ADD B [add the value of register B with accumulator]
DCR C [decrease the value of register C by 1]
JNZ LABEL [jump to LABEL if the value of register C is not zero]
STA C000H [store the
result, the value of accumulator in address C000h]
HLT [stop
processing]
No comments:
Post a Comment