Unit 15 Flashcards
How is register ‘n’ notated in a MIPS program?
$n
What does a !$n maean?
The value inside register $n
What does η (Eta) [Greek Letter] mean in MIPS notation?
NExt instruction to be executed
add $x,$y,$z
In the above example what two number are being added and where are they being stored?
$x=$y+$z
addi $x,$y,9
In the above example what two number are being added and where are they being stored?
$x=$y+9
bne $x,$y,m
In the above example what is beign checked and what happens if the check is true
bne = Branch if not equal to
if $x != $y go to the place with label m in memory
beq $x,$y,m
In the above example what is beign checked and what happens if the check is true
beq = Branch if equal to
if $x == $y go to the place with label m in memory
sw $x,16($y)
What does sw do and what hapens in the above example?
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 are MIPS registers denoted?
R and Rᵢ (i = any integers) [You can also use other capital letters e.g A,B,C]
How would you denote that the value of register R=6?
!R=6
How would you denote that the value of register R has been update so R=7?
R:=7
$t1 :=⃗ 0111
How many bits long is $t1 and what is its denary value?
32 bits (its padded with zeros), 3(denary value)
ω ∈ Bin^32
What is Bin^32 and what is ω?
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
R₁ := !R₂ + !R₃
What does this mean?
Register R₁ is being updated with a new value which is the sum of the contents of R₂ and R₃
What doesd B[a] denote and what does W[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]