quiz6_sol - CS 061 Computer Organization Winter - 2012 Quiz...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CS 061 – Computer Organization Winter - 2012 Quiz 6 – Wednesday 2/22 solution 1. An ISA specifies a word size of 4 bytes; byte addressability ; and an address space of 16M; it uses single-word instructions. What are the sizes of the PC and the IR? a. both 16 bits b. both 24 bits c. both 32 bits d. PC: 16 bits; IR: 32 bits e. PC: 24 bits; IR: 32 bits f. PC: 32 bits; IR: 24 bits The next two questions refer to the following system: A certain ISA has a 32-bit word size, uses single word instructions, has 56 opcodes, 32 registers, and 4Gbyte of byte-addressable memory. One group of instructions in this ISA takes the form: OPCODE | DESTINATION REGISTER | SOURCE REGISTER | FLAG | IMMEDIATE VALUE Or OPCODE | DESTINATION REGISTER | SOURCE REGISTER 1 | FLAG | SOURCE REGISTER 2 A one-bit flag distinguishes between these two addressing modes. Another group of instructions takes the form OPCODE | SOURCE/DESTINATION REGISTER | PC OFFSET Where PC Offset is the 2’s complement "distance" from the current PC to the labelled location. 2.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

quiz6_sol - CS 061 Computer Organization Winter - 2012 Quiz...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online