GATE / CS ARCHIVE

GATE CSE 1991 / QUESTION 3(iv)

8085 TRAP behavior with differing options

Computer Organization & Architecture · Input/Output, DMA & Interrupts · Full GATE CSE 1991 paper

GATE 1991, Q3(iv) 2 marks · MSQ
Report issue

Input/Output, DMA & Interrupts

Question 3(iv), GATE 1991: GFG choices: A hardware RST; B external instruction via INTA; C execute from 20H; D NOP; E none. Forum omits A and relabels the rest. What does TRAP do?
Question 3(iv), GATE 1991: GFG choices: A hardware RST; B external instruction via INTA; C execute from 20H; D NOP; E none. Forum omits A and relabels the rest. What does TRAP do?
Tap to enlarge
Select all that apply
Answer & solution

Answer: A (hardware-vectored restart) (no official key was published)

TRAP is a nonmaskable vectored interrupt. The processor saves the return address and transfers control to its fixed vector 0024H, rather than fetching an instruction supplied by an external device via INTA. Thus 20H and NOP are wrong. The the phrase “executes an RST by hardware” describes that automatic restart-like transfer; it should not be confused with an external RST opcode or the normal software RST vector 20H.

Original paper, page 3