This preview shows page 1. Sign up to view the full content.
Unformatted text preview: tructions with sufﬁx ‘p’ pop the top element off the stack. 3.14.5 FloatingPoint Arithmetic Instructions
Figure 3.32 documents some of the most common ﬂoatingpoint arithmetic operations. Instructions in the ﬁrst group have no operands. They push the ﬂoatingpoint 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.
 Spring '10
 Schultz
 The American

Click to edit the document details