NunoLava1998 wrote:
Can't you just (and other OSDevers in the forum) treat me like a normal user? Can't i just get a nice answer?
It's a two-way street; to be treated as a normal user first you have to act like a normal user. A normal user does not post over and over about every line of code they are trying to write. A normal user does not expect others to do all the work for them and to baby-sit them through the basics of processor operation. A normal user does a bit of research first. A normal user pays some heed to the advice they are given.
No-one can give you a nice answer to your question because no-one, you least of all, know what you are really asking. You have such a lack of understanding - and an inability, it seems, to learn - of what is involved that you really don't know what you are asking for.
Example - you are testing your IDT by doing an interrupt 0. And it fails; of course it does. You haven't defined an interrupt routine to handle this interrupt and you haven't made an entry in the IDT for it. So a triple fault is the only possible result (as you don't have handlers for GPF and PF exceptions either).
You are not ready for OS development yet; you need to understand better what it is that you are trying to do.