triple fault..

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
aztex
Member
Member
Posts: 30
Joined: Sun Mar 02, 2008 8:15 am

triple fault..

Post by aztex »

when i do float operation the os triple faults

Code: Select all

float f;
f*=5;
if i insert this it triple faults..
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Hi,

Firstly, what OS?.

Secondly, you're multiplying an undefined variable. That means you're performing floating point arithmetic on a number that may not actually be in IEEE754 format, so you're probably getting a floating point exception that you're not handling.

Cheers,

James
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

so you're probably getting a floating point exception that you're not handling.
In other words: fix your IDT first.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply