title: How would I write a bootloader to load a c kernel?
body: <p>I am learning NASM as I write bootloaders. So far I have a hello world bootloader. I want to know how to link a c program to it and have the bootloader load it into memory and start executing it's entry point function. I need NASM code as I am a NASM n00b. Thank you very much for you help.</p>
  
  <p>EDIT: Basically I need to know how to link the c program and I need NASM code to tsrat it's entry point function. Any gotchas I should know about?</p>