Match List I with List II and select the correct answer using the codes given below :
| List I | List II |
|---|---|
| (a) Register addressing | (i) MOVC A, @ A + PC |
| (b) Immediate addressing | (ii) DJNZ R2, LOOP |
| (c) Relative addressing | (iii) MOV A, # 55H |
| (d) Indexed addressing | (iv) MOV A, R1 |
MH SET - 2021, SET Exam - 2021,
Answer: B
The correct code is (a)-(iv), (b)-(iii), (c)-(ii), (d)-(i).
MOV A, R1 takes its operand from a register, which is register addressing. MOV A, #55H carries the data 55H in the instruction itself, immediate addressing. DJNZ R2, LOOP jumps by a signed offset relative to the program counter, relative addressing. MOVC A, @A+PC forms the address by adding the accumulator to a base register, indexed addressing, used for look-up tables in code memory.
The other codes give immediate addressing to MOV A, R1 or treat the DJNZ jump as indexed.
Please log in or register to report this question.