Your cart is currently empty!
For this lab, you will work with fixed point numbers. You will link your assembly code with C functions that help with input and output of fixed-point numbers. 8.1 Assignment Below, you will find two C functions, strtofixed and print_U along with a helper function base10double. Note that you will have to…
For this lab, you will work with fixed point numbers. You will link your assembly code with C functions that help with input and output of fixed-point numbers.
8.1 Assignment
Below, you will find two C functions, strtofixed and print_U along with a helper function base10double. Note that you will have to modify them slightly to deal with signed numbers. You may type those functions as shown and use them in your program. You are to create a table for the function f (x), where
x3 ¡ x2 ¡2x
f (x) ˘
(x¡112)4 ¯3
Your fixed-point numbers should have a minimum of 16 bits in the fractional part during all phases of calculation.
8.2 Instructions
f (x) ˘ x3¡x2¡2x .
(x¡112)4 ¯3