The GATE Grind

GATE 2016 CS (CS2) – Question 41

Computer Organization and Architecture · Instruction Set and Addressing Modes · 2 marks · Numerical answer

A processor has 64 registers and 12 instructions. Each instruction contains opcode, two source-register fields, one destination-register field and a 12-bit immediate. Instructions are byte-aligned. How many bytes store 100 instructions?

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 500.0 to 500.0

Explanation

Opcode width is $\lceil\log_2 12\rceil=4$ bits; each register needs 6. Total length is 4+3×6+12=34 bits. Byte alignment rounds each instruction to 40 bits, or 5 bytes. Thus 100 instructions occupy 500 bytes.

More Instruction Set and Addressing Modes questions

All Instruction Set and Addressing Modes questions →