23 views

Which one of the following $8085$ microprocessor programs correctly calculates the product of two $8$-bit numbers stored in registers $B$ and $C?$

1. $\begin{array}{ll} {} & \text{MVI A, 00 H} \\ {} & \text{JNZ LOOP} \\ {} & \text{CMP C} \\ \text{LOOP} & \text{DCR B} \\ & \text{HLT} \end{array} \\$
2. $\begin{array}{ll} {} & \text{MVI A, 00 H} \\ {} & \text{CMP C} \\ {} \text{LOOP} & \text{DCR B} \\ & \text{JNZ LOOP} \\ & \text{HLT} \end{array} \\$
3. $\begin{array}{ll} {} & \text{MVI A, 00 H} \\ \text{LOOP} & \text{ADD C} \\ {} & \text{DCR B} \\ & \text{JNZ LOOP} \\ & \text{HLT} \end{array} \\$
4. $\begin{array}{ll} {} & \text{MVI A, 00 H} \\ & \text{ADD C} \\ & \text{JNZ LOOP} \\ \text{LOOP} & \text{INR B} \\ & \text{HLT} \end{array}$

recategorized | 23 views