5.67 · exercise

Quiz: Floating Point - Fundamentals

Work through the single and double precision register views, the directives that place floating-point values in memory, the operand rules the arithmetic instructions follow, and the gdb format that reads a register as a number.

0 of 5 correct

Knowledge Check

A double precision value sits in a d register. How many bits wide is that register?

Knowledge Check

Which directive places a double precision constant in .data?

Knowledge Check

An assembly subroutine returns a double precision result to a C caller. Which register holds the return value?

Knowledge Check

How do the basic floating-point arithmetic instructions such as fadd and fmul differ from their integer counterparts in the operands they accept?

Knowledge Check

In gdb, which print format shows a register value as a floating-point number?