Term 1 of 205
When an operation is actually performed, what is true of the operands in the ALU?
At least one operand must be 32 bits wide.
Each operand can be any size.
Both operands must come from registers.
They must each be 32 bits wide.
Term 2 of 205
What is the bit-wise AND of the following patterns:
0110 1101
0100 1010
0110 0110
0100 1000
0110 1001
1110 0110
,Term 3 of 205
Say that:
Memory at 0x10000000 contains 0x80
Register $5 contains 0x10000000
What is put in register $8 after lb $8,0($5) is executed?
0x88888880
0x00000080
0x80000000
0xFFFFFF80
Term 4 of 205
What is the result of performing an exclusive or of a bit pattern with itself?
The result is all zero bits.
The result is the same as the original.
The result is all one bits.
The result is the reverse of the original
Term 5 of 205
What instruction is used to divide two's complement integers?
dv
divide
divu
div
,Term 6 of 205
Rotate the following bit pattern two positions RIGHT:
10001101
00110100
01100011
10001101
10000001
Term 7 of 205
Say that:
Memory at 0x10000000 contains 0x80
Memory at 0x10000001 contains 0x00
Register $5 contains 0x10000000
Say that the MIPS chip is running in little-endian mode (as does SPIM on an Intel computer). What
is put in register $8 after lh $8,0($5) is executed?
0xFFFFFF80
0x88888880
0x00000080
0x80000000
Term 8 of 205
In an actual computer system with a full-scale operating system, what would the exit service do?
Return control to the operating system.
Halt the processor.
Halt the operating system.
Immediately start running another user program.
, Term 9 of 205
At what address does the SPIM simulator put the first machine instruction when it is running with
the Bare Machine option turned ON?
0x00000000
0x00400000
0x10000000
0xFFFFFFFF
Term 10 of 205
What are the three steps in the machine cycle?
A. the character is in the low-order byte. the three high-order bytes are zero.
A. fetch, increment, execute
B. several sequential instructions are simultaneously prepared for execution while one
instruction finishes its execution.
A. no.
Term 11 of 205
How is an array of integers typically implemented?
The integers of the array are put in sequential words of memory. A word of zeros follows
the last integer.
The integers of the array are put in sequential words of memory. Another word of memory
contains the length of the array.
The integers of the array are put in sequential bytes of memory. The last byte holds the
length of the array.
Each integer of the array is assigned to one of the general purpose registers.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller stuuviaa. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.