Question: Assume that these values are correct before each instruction below is executed; do not use the after state of one problem as the before state

Assume that these values are correct before each instruction below is executed; do not use the "after" state of one problem as the "before" state of the next problem. Give the contents of the floating-point register stack of fpValue and of intValue following execution of the instruction.
a. fld st(2)
b. fld fpValue
c. fild intValue
d. fldpi
e. fst st(4)
f. fstp st(4)
g. fst fpValue
h. fistp intValue
i fxch st(3)
j. fadd
k. fadd st(3),st
Suppose that a program's data segment contains fpValue REAL4 0.5 intValue DWORD 6 and that code executed so far by the program has not changed these values. Suppose also that the floating-point register stack contains 9.0 ST 12.0 ST(1) 23.0 ST(2) 24.0 ST(3) 35.0 ST(4) ST(5) ST(6) ST(7) Suppose that a program's data segment contains fpValue REAL4 0.5 intValue DWORD 6 and that code executed so far by the program has not changed these values. Suppose also that the floating-point register stack contains 9.0 ST 12.0 ST(1) 23.0 ST(2) 24.0 ST(3) 35.0 ST(4) ST(5) ST(6) ST(7)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
