Suppose we want to store a string of 6 characters in MPS How many bytes of memor
ID: 3673663 • Letter: S
Question
Suppose we want to store a string of 6 characters in MPS How many bytes of memory do we need to allocate? How many words of MIPS memory (minimum) are needed to store the 6 characters in part a? (true or false) - It is possible to store 2 characters and a 16-bit integer in the same word in the MIPS memory true Write a MIPS code needed to allocate the amount of memory that you sari you needed in part a Write a MIPS assembly function called rev that reverses a base 2 number The input number is stored in register $a0 At the end of the function, the result of the computation should be in register $v0. For full credit, you may not use the divide instruction If you write a correct function using the divide instructions What are three possible problems when using floating port numbers n computer memory?Explanation / Answer
Answer:
3. what are the three possible problems when using floating point numbers in computer memory?
Three possible problems when using floating point numbers in computer memory:
Example: /. This is mathematically undefined one.
2. Computer is trying to do an unsupported format operation but legal in principle.
Example: a) calculating the square root of 1, results in complex numbers
b) Calculating the inverse sine of 2, results in complex numbers.
3. When a legal operation leads to a result which cannot be represented in the specified format.
Example: i) Too large exponent: Overflow
ii) Too small exponent: Underflow
iii) Denormalization: Precision loss