Comp Org Week 7

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:36 PM on 3/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

12 Terms

1
New cards

How does MIPS handle subtraction?

It uses addition, which means that instead of doing 7 - 6, it does 7 + -6 (this uses no additional opcode)

2
New cards

What is overflow?

A carry past the highest bit. This doesn’t happen adding operands of different signs or subtracting operands of the same sign.

3
New cards

How can you tell there’s been an overflow?

The sign bit is set with the value of the result instead of the correct sign.

4
New cards

Which instructions do you use if overflow detection is not needed?

addu, addui, and subu

5
New cards

Which instructions do you use if there’s a chance of an overflow?

add, addi, sub

6
New cards

What are examples that signal there was an overflow?

  1. Adding two positive numbers give a negative number

  2. Adding two negative numbers give a positive number

  3. Subtracting a positive number from a negative number gives a positive number

  4. Subtracting a negative number from a positive number gives a negative number

7
New cards

How many bits are needed for binary integer multiplication?

64 bits

8
New cards

How many bits are needed for binary integer division?

31 bits

9
New cards

What registers are used for integer multiplication and division in MIPS?

mult, div, hi, lo, mfhi, mflo

10
New cards

What does ‘hi’ used for in MIPS?

With multiplication, it stores the resultant (because it’s able to store a 64 bit integer). With division, it stores the remainder

11
New cards

What is ‘lo’ used for in MIPS?

It’s used with ‘hi’ in multiplication to store 64 bits integers. In division, it stores the quotient.

12
New cards

What does ‘mfhi’ and ‘mflo’ mean in MIPS?

Move the contents from hi/lo into rd

Explore top notes

note
AP Gov: Chapter 1 Vocab
Updated 1299d ago
0.0(0)
note
Unit 7: Evolution (Biology)
Updated 710d ago
0.0(0)
note
Mitosis
Updated 751d ago
0.0(0)
note
diplomacy
Updated 1251d ago
0.0(0)
note
Le Chatelier's Principle
Updated 1158d ago
0.0(0)
note
AP Gov: Chapter 1 Vocab
Updated 1299d ago
0.0(0)
note
Unit 7: Evolution (Biology)
Updated 710d ago
0.0(0)
note
Mitosis
Updated 751d ago
0.0(0)
note
diplomacy
Updated 1251d ago
0.0(0)
note
Le Chatelier's Principle
Updated 1158d ago
0.0(0)

Explore top flashcards

flashcards
Kite Runners Vocab
35
Updated 68d ago
0.0(0)
flashcards
Midterm
238
Updated 389d ago
0.0(0)
flashcards
Describing People SPN2 PreAP
91
Updated 221d ago
0.0(0)
flashcards
Cellular Respiration Review
22
Updated 1215d ago
0.0(0)
flashcards
apush 3.1-3.4
52
Updated 578d ago
0.0(0)
flashcards
Chapter 9 Med Term
25
Updated 1217d ago
0.0(0)
flashcards
Posterior Muscles
47
Updated 1244d ago
0.0(0)
flashcards
SALUD Y BIENESTAR vocabulario
33
Updated 913d ago
0.0(0)
flashcards
Kite Runners Vocab
35
Updated 68d ago
0.0(0)
flashcards
Midterm
238
Updated 389d ago
0.0(0)
flashcards
Describing People SPN2 PreAP
91
Updated 221d ago
0.0(0)
flashcards
Cellular Respiration Review
22
Updated 1215d ago
0.0(0)
flashcards
apush 3.1-3.4
52
Updated 578d ago
0.0(0)
flashcards
Chapter 9 Med Term
25
Updated 1217d ago
0.0(0)
flashcards
Posterior Muscles
47
Updated 1244d ago
0.0(0)
flashcards
SALUD Y BIENESTAR vocabulario
33
Updated 913d ago
0.0(0)