Input/Output, DMA & Interrupts
![Question 10(a), GATE 2000: The printed 8085 instruction is IN 09H at memory 3050H, with table [3050H]=DAH, [3051H]=09H. In the intended ten-T-state IN trace, opcode fetch uses T1–T4, operand memory read T5–T7, and I/O read T8–TA. Box A is opcode data on AD₇…AD₀, box D is low address for operand fetch, box B is operand data, and box C is high address A₁₅…A₈ during I/O read. The figure initially shows high address 30H and low address 50H.
Task: Give A,B,C,D in hexadecimal.](../../assets/questions/CS-2000-Q63-1.webp)
![Question 10(a), GATE 2000: The printed 8085 instruction is IN 09H at memory 3050H, with table [3050H]=DAH, [3051H]=09H. In the intended ten-T-state IN trace, opcode fetch uses T1–T4, operand memory read T5–T7, and I/O read T8–TA. Box A is opcode data on AD₇…AD₀, box D is low address for operand fetch, box B is operand data, and box C is high address A₁₅…A₈ during I/O read. The figure initially shows high address 30H and low address 50H.
Task: Give A,B,C,D in hexadecimal.](../../assets/questions/CS-2000-Q63-2.webp)
Shared context
The printed 8085 instruction is IN 09H at memory 3050H, with table [3050H]=DAH, [3051H]=09H. In the intended ten-T-state IN trace, opcode fetch uses T1–T4, operand memory read T5–T7, and I/O read T8–TA. Box A is opcode data on AD₇…AD₀, box D is low address for operand fetch, box B is operand data, and box C is high address A₁₅…A₈ during I/O read. The figure initially shows high address 30H and low address 50H.
Answer & solution
Answer: Intended IN: A=DBH, B=09H, C=09H, D=51H. Copying the printed table gives A=DAH but is inconsistent with IN. (no official key was published)
1. Opcode fetch addresses 3050H, placing 30H on the high address bus and 50H on the multiplexed low bus during its address phase. During its data phase, box A is the opcode byte.
2. The next memory cycle addresses 3051H. High address stays 30H; low address box D is 51H. Memory then returns the immediate port number, so box B is 09H.
3. For the I/O-read cycle, the 8085 places the eight-bit port address on both halves of the address bus. Thus high-address box C is 09H; the low address is also 09H during that cycle’s address phase.
4. The reproductions print DAH at 3050H. A literal transcription therefore fills A=DAH, B=09H, C=09H, D=51H in the intended diagram. Architecturally, however, IN has opcode DBH; DAH is JC addr16 and would require another address byte rather than this I/O cycle. No single execution satisfies both the table and the stated instruction.
5. For a corrected executable IN 09H use DBH at 3050H and keep B,C,D as above. For the literal DAH program, the missing byte at 3052H and initial carry are needed to determine the jump; there is no intended peripheral read.