GATE / CS ARCHIVE

GATE CSE 1992 / QUESTION 1(vi)

An inconsistent expanding-opcode premise

Computer Organization & Architecture · Instructions & Addressing Modes · Full GATE CSE 1992 paper

GATE 1992, Q1(vi) Other
Report issue

Instructions & Addressing Modes

Question 1(vi), GATE 1992: An 11-bit instruction with 4-bit address fields allegedly supports five two-address instructions and 32 two-address instructions. How many zero-address instructions remain?
Question 1(vi), GATE 1992: An 11-bit instruction with 4-bit address fields allegedly supports five two-address instructions and 32 two-address instructions. How many zero-address instructions remain?
Tap to enlarge
Answer & solution

Answer: Literal premise impossible; 256 if the second group was intended to be one-address (no official key was published)

A two-address instruction uses eight operand bits, leaving only three opcode bits, hence at most eight distinct two-address operations. The literal total of 37 is impossible. If the second phrase is repaired to 32 one-address instructions, five primary opcodes are consumed, leaving three. Expanding each by four bits gives 48 one-address opcode patterns. After using 32, the remaining 16 patterns can each expand by another four bits into 16 zero-address patterns, yielding 256. Both copies repeat “two-address, ” so 256 is explicitly a conditional reconstruction, not a solution to the literal inconsistent specification.

Original paper, page 1