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.
i've jumped into the protected mode and started writin' interrupts. my coding works well in BOCHS for windows. but, it never works in the real h/w. it keeps restarting and the interrupt never calls in the real hardware, but in the simulator.
The only suggestion I can give is: always test on real hardware as well as the emulator. It's very easy (as you have found) to write code which doesn't work on real hardware.
You could try stripping code out and gradually working backwards until it does work, then add things back piece by piece.