Question: Question 2 [ 2 6 ] 2 . 1 . Convert 3 . 1 4 1 5 to Q 7 . 8 format and indicate

Question 2[26]
2.1. Convert 3.1415 to Q7.8 format and indicate the error.
[5]
2.2. Convert the following to IEEE 754 Single Precision Floating Point format
2.2.1.171.62510
[5]
2.2.2.-1.11110012
2.3. Complete the following arithmetic operations in two's complement representations assuming a 6-bit system. What is the value of the Carry Flag and the Overflow flag
2.3.1.2110(-3)10
2.3.2.11002-01112
2.4. How many bytes of stack are needed to pass arguments when the following function is called?
2.4.1. int 32t fun2(uint8_t a, uint32_t b, uint64_tc, uint8_t d, uint32_t e)
[2]
2.5. To check for the signed greater or equal (GE) condition, we evaluate whether the negative flag is equal to the overflow flag. If they are equal, then GE condition is true. Explain the reasons why this works
[4]
Question 3[14]
3.1. What is the bit band alias address of the 7 th (seventh) bit of memory location 040000200?
[4]
3.2. Assuming that SP is initially loaded with the memory address 000402420, what is its value after executing the instruction POP {r1,r3,r6,PC}?
4
3.3. To preserve the processor runtime environment during function call, which registers must the callee preserve
[2]
3.4. LSL (Logical Shift Left) and LSR (Logical Shift Right) can speed up some special multiplication and division because it runs faster than MUL and DIV instructions. Use LSL and LSR to implement the following C statement in Assembly instruction assuming r0=x,r1=y and r2 is for constants
3.4.1x=33**x
3.4.2y=x32+5
Question 2 [ 2 6 ] 2 . 1 . Convert 3 . 1 4 1 5 to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!