MVI A, 00H
LOOP ; _ _ _ _ _
_ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _
HLT END
A sequence of instructions to complete the program would be :
The objective is to multiply the contents of register $B$ by the content of register $C$ and store the result in the accumulator $A$. This is achieved using repeated addition within a loop.
Initial values: Register $B$ = $0AH$, Register $C$ = $0BH$.
The program starts with initializing the accumulator $A$ to $00H$.
$MVI A, 00H$
Multiplication can be performed by repeatedly adding the multiplicand (content of $B$) to the accumulator $A$, for a number of times specified by the multiplier (content of $C$). Register $C$ serves as the loop counter.
The loop needs to perform the following actions in each iteration:
Considering the available options, the sequence that correctly implements these steps is:
This sequence ensures that the addition happens, followed by the decrementing of the counter, and then the jump condition is checked. This correctly executes the addition $0BH$ times.
Therefore, the complete sequence to fill the gap is $ADD B, DCR C, JNZ LOOP$.
$MVI A, 00H$
$LOOP: ADD B$
$ DCR C$
$ JNZ LOOP$
$HLT$
$END$
| List - I (Addressing Modes) | List - II (Instruction) |
| A. Immediate Addressing | I. LDAX B |
| B. Register Addressing | II. OUT 01H |
| C. Direct Addressing | III. MVI B, 37H |
| D. Indirect Addressing | IV. MOV A, B |
| List - I | List - II |
| (Memory) | (Characteristic) |
| A. ROM | I. Volatile, Fast, Expensive |
| B. EPROM | II. UV erasable |
| C. EEPROM | III. Electrically erasable |
| D. SRAM | IV. Non-Volatile, permanent data |
| List - I | List - II |
| (Bus/Logic) | (Function/Characteristic) |
| A. Address bus | I. Carries read/write signals, timing signals, and interrupt signals |
| B. Data bus | II. A three-state output that can be high, low, or high-impedance |
| C. Control bus | III. Unidirectional lines used by CPU to point to a memory location or I/O device |
| D. Tristate logic | IV. Bidirectional lines used for transferring data between the CPU and memory |