title: If I build a new CPU, what should the BIOS contain?(Read details)
body: <p>I am trying to build a CPU from scratch (from Nor gates) in an emulator first, then on breadboard.</p>
  <p>Just trying to understand how things work.</p>
  <p>Now, as my CPU will be new, how would I instruct an OS, say arch linux to work with it?</p>
  <p>What role the BIOS will play?
  Will I have to write a BIOS which contains an assembler in it?</p>
  <p>Do I need to write some program on the OS too?</p>
  <p>So that, it starts to communicate to with my CPU.</p>
  <p>[P.S]: I am a programmer, so pretty much have idea on how things move till assembly level.</p>
  <p>Just want to know how the hardware level works beyond Assembly.</p>
  <p>Or in other words, what was written on BIOS for the first ever computer?</p>
  <p>How did it bootstrap?</p>