global fpu_init fpu_init: mov edx, cr0 and edx, (-1) - ((1 << 3) + (1 << 4)) mov cr0, edx fninit fnstsw [test] cmp word [test], 0 jne no_fpu xor eax, 0 ret no_fpu: mov eax, 1 ret test: dw 0x55AA