A computer uses a memory unit of 512 K words of 32 bits each. A binary instruction code is stored in one word of the memory. The instruction has four parts: an addressing mode field to specify one of the two-addresssing mode (direct and indirect), an operation code, a register code part to specify one of the 256 registers and an address part. How many bits are there in addressing mode part, opcode part, register code part and the address part?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. 1, 4, 8, 19
Explanation
512K words needs 19 address bits; 256 registers need 8 bits; two addressing modes need 1 bit; the opcode gets the rest: 32 − 19 − 8 − 1 = 4.
More Computer System Architecture questions
- A micro instruction format has microoperation field which is divided into 2 subfields F1 and F2, each having 15 distinct microoperations, c…
- If (142)_b + (112)_(b−2) = (75)_8, find the base b.
- The following program is stored in the basic computer: 010 CLA; 011 ADD 016; 012 BUN 014; 013 HLT; 014 AND 017; 015 BUN 013; 016 C1A5; 017…
- The Reduced Instruction Set Computer (RISC) characteristics are : (a) Single cycle instruction execution (b) Variable length instruction fo…
- Which of the following binary codes for decimal digits are self complementing? (a) 8421 code (b) 2421 code (c) excess-3 code (d) excess-3 g…
- An instruction at location 500 has its address field at 501, holding the value 400. Register R1 contains 200. Match each addressing mode wi…