324_Book

# Instead of setting register eax to 0 at the beginning

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: tructions with sufﬁx ‘p’ pop the top element off the stack. 3.14.5 Floating-Point Arithmetic Instructions Figure 3.32 documents some of the most common ﬂoating-point arithmetic operations. Instructions in the ﬁrst group have no operands. They push the ﬂoating-point representation of some numerical constant onto the stack. There are similar instructions for such constants as , , and ÐÓ ¾ ½¼. Instructions in the second group have a single operand. The operand is always the top stack element, similar to the neg operation of the hypothetical stack evaluator. They replace this element with the computed result. Instructions in the third group have two operands. For each of these instructions, there are many different variants for how the operands are speciﬁed, as will be discussed shortly. For noncommutative operations such as subtraction and division there is both a forward (e.g., fsub) and a reverse (e.g., fsubr) version, so that the arguments can be used in either order. In Figure 3...
View Full Document

## This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online