传说中有那么一些指令叫浮点操作指令。今天在看linux源码时,偶然发现一条陌生的指令,原来传说就在眼前了。
INIT/FNINIT--Initialize Floating-Point Unit
Description
Sets the FPU control, status, tag, instruction pointer, and data pointer registers to their default states. The FPU control word is set to 037FH (round to nearest, all exceptions masked, 64-bit precision). The status word is cleared (no exception flags set, TOP is set to 0). The data registers in the register stack are left unchanged, but they are all tagged as empty (11B). Both the instruction and data pointers are cleared.
The FINIT instruction checks for and handles any pending unmasked floating-point exceptions before performing the initialization; the FNINIT instruction does not.
以上是在网上搜索到的相关说明。
我看到的这条指令仅仅是为了测试系统是否自带浮点协处理器的,没有具体的意义。