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.
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.
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 ]