Unit 15 Flashcards

1
Q

How is register ‘n’ notated in a MIPS program?

A

$n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a !$n maean?

A

The value inside register $n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does η (Eta) [Greek Letter] mean in MIPS notation?

A

NExt instruction to be executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

add $x,$y,$z
In the above example what two number are being added and where are they being stored?

A

$x=$y+$z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

addi $x,$y,9
In the above example what two number are being added and where are they being stored?

A

$x=$y+9

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

bne $x,$y,m
In the above example what is beign checked and what happens if the check is true

A

bne = Branch if not equal to
if $x != $y go to the place with label m in memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

beq $x,$y,m
In the above example what is beign checked and what happens if the check is true

A

beq = Branch if equal to
if $x == $y go to the place with label m in memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

sw $x,16($y)
What does sw do and what hapens in the above example?

A

sw = store word
sw takes the contens of a register and compies into main memory
in the example the value $x is being copied into index (16 + $y of main memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How are MIPS registers denoted?

A

R and Rᵢ (i = any integers) [You can also use other capital letters e.g A,B,C]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How would you denote that the value of register R=6?

A

!R=6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How would you denote that the value of register R has been update so R=7?

A

R:=7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

$t1 :=⃗ 0111
How many bits long is $t1 and what is its denary value?

A

32 bits (its padded with zeros), 3(denary value)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

ω ∈ Bin^32
What is Bin^32 and what is ω?

A

Bin^32 is the set of 32 bit long binary numbers
ω is and element of the set Bin^32 therefore ω is 32 bits long
also ω is a word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

R₁ := !R₂ + !R₃
What does this mean?

A

Register R₁ is being updated with a new value which is the sum of the contents of R₂ and R₃

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What doesd B[a] denote and what does W[a]?

A

The byte location at main memory adress a
The word location at main memory adress a [note in MIPS all word adress are 4 bytles long]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Where is W[4]?

A
17
Q
A