Examining figure 39 we see that the instruction setae

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ten with no argument is equivalent to fxch %st(1), that is, swap the top two stack elements. 3.14. *FLOATING-POINT CODE Instruction fldz fld1 fabs fchs fcos fsin fsqrt fadd fsub fsubr fdiv fdivr fmul Computation ¼ ½ 181 ÇÔ ÇÔ Ó× ÇÔ × Ò ÇÔ ÔÇÔ ÇÔ ½ · ÇÔ ¾ ÇÔ ½ ÇÔ ¾ ÇÔ ¾ ÇÔ ½ ÇÔ ½ ÇÔ ¾ ÇÔ ¾ ÇÔ ½ ÇÔ ½ ¡ ÇÔ ¾ Figure 3.32: Floating-Point Arithmetic Operations. Each of the binary operations has many variants. Instruction fsubs Ö fsubl Ö fsubt Ö fisubl Ö fsub %st( ),%st fsub %st,%st( ) fsubp %st,%st( ) fsubp Operand 1 %st(0) %st(0) %st(0) %st(0) %st( ) %st(0) %st(0) %st(0) Operand 2 ÅÑ ÅÑ Å Ñ½¼ ÅÑ %st(0) %st( ) %st( ) %st(1) Ö Ö Ö Ö (Format) Single Double Extended integer Extended Extended Extended Extended Destination %st(0) %st(0) %st(0) %st(0) %st(0) %st( ) %st( ) %st(1) Pop %st(0) (Y/N) N N N N N N Y Y Figure 3.33: Floating-Point Subtraction Instructions. All store their results into a floating-point register in extended-precision format. Ins...
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