3.23.  <3.5> Write down the binary representation of the decimal number 63.25
assuming the IEEE 754 single precision format.
63.25 = 253 x 2-2 = 1.1111101 x 25
0 10000100 11111010000000000000000
3.24.  <3.5> Write
2.1  <2.2> For the following C statement, what is the corresponding MIPS assembly
code? Assume that the variables f, g, h, and i are given and could be considered 32bit integers as declared in a C program. Use a minimal
How to prepare the coming midterm
Q. What is the format of the midterm?
A. Part A Homework related, Part B Lecture Related, Part C Project and Textbook Related,
Part D Challenging Problem(s)
Q. What should be my strategy?
A. 80-20 Rule. 80% of your t
Assignment_3 Solution (from textbook)
The attraction is that each hex digit contains one of 16 different characters
(09, AE). Since with 4 binary bits you can represent 16 different patterns,
in hex each digit requir
3.1.  <3.2> What is 5ED407A4 when these values represent unsigned 16-bit
hexadecimal numbers? The result should be written in hexadecimal. Show your work.
0101 1110 1101 0100
- 0000 0111 1010 0100
2.12 Assume that registers $s0 and $s1 hold the values 0x80000000 and 0xD0000000,
2.12.1  <2.4> What is the value of $t0 for the following assembly code?
add $t0, $s0, $s1
$t0 = $s0 + $s1 = 0x80000000 + 0x
Assignment_2 Solution (Prof. N. Chen)
(Prof. Chens note: if you look at the most significant hex numbers, you have 0x8+0xd)
Prof. Chens note: This question is a bit tricky. The way to understand it is th
Assignment_ 1 Solution
addi f, h, -5 (note, no subi)
add f, f, g
Sll $t0,$s3, 2 # we multiply i by 4
Add $t0, $t0, $s6 #now we have the address of A[i]
Lw $t0, 0($t0) #now we load a word of A[i] into register $t0
4.1 Consider the following instruction:
Instruction: AND Rd,Rs,Rt
Interpretation: Reg[Rd] = Reg[Rs] AND Reg[Rt]
4.1.1  <4.1> What are the values of control signals generated by the control in Figure
4.2 for the followin