Well, I have written a simple bootloader but I haven't written a complicated one yet. I have written a simple bootloader that prints out hello world to the console and loaded disk sectors into memory. From the source code I've seen, is that there is steps to go through before entering protected mode. Where I am confused and haven't figured out yet is some thing about the stack frame and if the idt and gdt uses segments.