Question: Write an assembly program to dissect a double stored in memory (use the value -571.3125). Store the sign bit in one memory location. Store the

Write an assembly program to dissect a double stored in memory (use the value -571.3125). Store the sign bit in one memory location. Store the exponent after subtracting the bias value into a second memory location. Store the fraction field with the implicit 1 bit at the front of the bit string into a third memory location. Follow the IEEE 754 format discussed in the book.

I am having trouble with the fraction field. Below is the code I have.

mov rax, [fraction]

and rax, 0x007FFFFF

or rax, 0x0045D000

mov [fraction], rax

I need [fraction] to have the same value as this snippet [f].

Write an assembly program to dissect a double stored in memory (use

040401004040140404018040401casef571.3125000000010000100100000000000000000000000011010100000000000000000010001110000000000000000000000000

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