quiz9 - d) The buses will allow two-way communication over...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 210: Computer Systems I: Machine Organization Fall 2006 - Section 91 Quiz #9 - 2006/12/05 Name: ______________________________ ================================================================================ 1: Circle which one (1) of the following sections of C code would correspond to the following assembly code: ========================== before: sub r3, r1, r2 beq after add r1, r1, r2 jmp before after: ========================== a) if(r1 == r2) { b) if(r1 != r2) { r1 = r1 + r2; r1 = r1 + r2; } } c) while(r1 == r2) { d) while(r1 != r2) { r1 = r1 + r2; r1 = r1 + r2; } } ================================================================================ 2: Circle which of the following (it could be any number of them) are advantages of the shared bus architecture for the CS210CPU: a) It will run faster. b) The overall design is simpler. c) It allows access to more memory.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: d) The buses will allow two-way communication over only one line. e) The control codes make coordination simpler. ================================================================================ 3: Circle which of the following (it could be any number of them) are reasonable alternatives to the SET instruction if the constant value needed is too large for the 4-bit immediate value to SET: a) Use two consecutive SET instructions instead. b) Pass it as an immediate value to the JMP instruction. c) Pass it as an immediate value to a Branch that will never jump. d) Load it with the LOD instruction from memory. ================================================================================ 4: What are the names of the 3 busses in the 3-bus architecture?...
View Full Document

This document was uploaded on 04/20/2010.

Ask a homework question - tutors are online