Question: Write a program to Read and Decode Float numbers This should be done in ARMv 7 assembly without the use of push / pop or

Write a program to Read and Decode Float numbers
This should be done in ARMv7 assembly without the use of push/pop or STMDF/LDMFD
Repeat until Zero is entered
Decode the number and display in Scientific Notation as
<+/->1.xxxxxxxxxxxxxxxxxxxxxxx En..n
x is a binary digit (all 23 of them)
Adapt your Hex to Bin code
n..n is a Decimal Number (use printf)
This decode and display code should be made into a function.
Comment Block
Defined and document parameters
Save / Restore per AAPCS using Store Multiple and Load Multiple Instructions
Returns 0
Square the number are display it in scientific Notation as specified above
If possible take the Square Root ofthe number are display it in scientific Notation as specified above
Repeat
Howard Miller CIST 039
This program will input and decode an IEEE-754 Floating Point Numbers.
It will square the number and decode it. Next, if possible, it will take
the square root of the number and decode it. This will repeat until the
user enters Zero.
Enter the single precision floating point value (0 to exit): 0.75
The initial value is: +1.10000000000000000000000 E-1
The value squared is: +1.00100000000000000000000 E-1
The root of the value is: +1.10111011011001111010111 E-1
Enter the single precision floating point value (0 to exit): 4
The initial value is:+1.00000000000000000000000 E2
The value squared is: +1.00000000000000000000000 E4
The root of the value is: +1.00000000000000000000000 E1
Enter the single precision floating point value (0 to exit): -256
The initial value is: -1.00000000000000000000000 E8
The value squared is: +1.00000000000000000000000 E16
Enter the single precision floating point value (0 to exit): 0

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 Programming Questions!