80387指令集

来源:互联网 发布:手机屏幕录像软件ios 编辑:程序博客网 时间:2024/05/16 10:49

浮点指令集:

 

x87浮点运算处理单元指令支持浮点数,整数,BCD操作数.

X87浮点运算处理单元数据传输指令

FLD 

Load floating-point value 

FST 

Store floating-point value 

FSTP 

Store floating-point value and pop 

FILD 

Load integer 

FIST 

Store integer 

FISTP 

Store integer and pop 

FBLD 

Load BCD 

FBSTP 

Store BCD and pop 

FXCH 

Exchange registers 

FCMOVE 

Floating-point condITional move if equal 

FCMOVNE 

Floating-point condITional move if not equal 

FCMOVB 

Floating-point condITional move if below 

FCMOVBE 

Floating-point condITional move if below or equal 

FCMOVNB 

Floating-point condITional move if not below 

FCMOVNBE 

Floating-point condITional move if not below or equal 

FCMOVU 

Floating-point condITional move if unordered 

FCMOVNU 

Floating-point condITional move if not unordered 

X87浮点运算处理单元基本算术指令集

FADD 

Add floating-point 

FADDP 

Add floating-point and pop 

FIADD 

Add integer 

FSUB 

Subtract floating-point 

FSUBP 

Subtract floating-point and pop 

FISUB 

Subtract integer 

FSUBR 

Subtract floating-point reverse 

FSUBRP 

Subtract floating-point reverse and pop 

FISUBR 

Subtract integer reverse 

FMUL 

Multiply floating-point 

FMULP 

Multiply floating-point and pop 

FIMUL 

Multiply integer 

FDIV 

Divide floating-point 

FDIVP 

Divide floating-point and pop 

FIDIV 

Divide integer 

FDIVR 

Divide floating-point reverse 

FDIVRP 

Divide floating-point reverse and pop 

FIDIVR 

Divide integer reverse 

FPREM 

Partial remainder 

FPREM1 

IEEE Partial remainder 

FABS 

Absolute value  

FCHS 

Change sign 

FRNDINT 

Round to integer 

FSCALE 

Scale by power of two 

FSQRT 

Square root 

FXTRACT 

Extract exponent and significand 

X87浮点运算处理单元比较指令

FCOM 

Compare floating-point 

FCOMP 

Compare floating-point and pop 

FCOMPP 

Compare floating-point and pop twice 

FUCOM 

Unordered compare floating-point 

FUCOMP 

Unordered compare floating-point and pop 

FUCOMPP 

Unordered compare floating-point and pop twice 

FICOM 

Compare integer 

FICOMP 

Compare integer and pop 

FCOMI  

Compare floating-point and set EFLAGS 

FUCOMI 

Unordered compare floating-point and set EFLAGS 

FCOMIP 

Compare floating-point, set EFLAGS, and pop 

FUCOMIP 

Unordered compare floating-point, set EFLAGS, and pop 

FTST 

Test floating-point (compare wITh 0.0) 

FXAM 

Examine floating-point 

x87 浮点运算处理单元超越函数指令

FSIN 

Sine 

FCOS 

Cosine 

FSINCOS 

Sine and cosine

FPTAN

Partial tangent

FPATAN 

Partial arctangent 

F2XM1

2x 1

FYL2X 

Y*log2x 

FYL2XP1

Y*log2(x+1)

x87 浮点运算处理单元常数装载指令

FLD1 

Load +1.0 

FLDZ 

Load +0.0 

FLDPI 

Load π 

FLDL2E

Load log2e

FLDLN2

Load loge2

FLDL2T

Load log210

FLDLG2

Load log102

x87 浮点运算处理单元控制指令

FINCSTP 

Increment FPU register stack pointer 

FDECSTP 

Decrement FPU register stack pointer 

FFREE  

Free floating-point register 

FINIT 

Initialize FPU after checking error condITions 

FNINIT 

Initialize FPU without checking error condITions 

FCLEX 

Clear floating-point exception flags after checking for error condITions 

FNCLEX 

Clear floating-point exception flags without checking for error condITions 

FSTCW 

Store FPU control word after checking error condITions 

FNSTCW 

Store FPU control word without checking error condITions 

FLDCW 

Load FPU control word 

FSTENV 

Store FPU environment after checking error condITions 

FNSTENV 

Store FPU environment without checking error condITions 

FLDENV 

Load FPU environment 

FSAVE 

Save FPU state after checking error condITions 

FNSAVE 

Save FPU state without checking error condITions 

FRSTOR 

Restore FPU state 

FSTSW 

Store FPU status word after checking error condITions 

FNSTSW 

Store FPU status word without checking error condITions 

WAIT/FWAIT 

WaIT for FPU 

FNOP 

FPU no operation