0

We all know that assembly language is almost the closest we can get to machine code.

But how can I configure the BIOS so that it gets run during bootstrap?

compiler
  • 4,143
  • 9
  • 36
  • 40
  • I don't think you need to configure the BIOS. You need to either replace (or augment) the boot loader, or hook in downstream from it. Not for the faint-hearted. If you want it to execute earlier than that, you have to replace the BIOS code, which means burning a new PROM. http://duartes.org/gustavo/blog/post/how-computers-boot-up – Robert Harvey Mar 13 '11 at 06:32
  • Is there a hello world demo for this? – compiler Mar 13 '11 at 06:38
  • There's a hello world demo at this answer to your previous question: http://stackoverflow.com/questions/5267988/how-to-write-execute-pure-machine-code-manually/5268120#5268120 – Greg Hewgill Mar 13 '11 at 09:48

1 Answers1

0

You don't. You write the code onto a disk as a boot loader and then the BIOS will launch it normally. Don't do it to a disk that has anything on it that you care about (like a working OS). It's not hard to do, but you do have the potential to totally destroy any data on the machine you do this to, so use caution.

Brian Knoblauch
  • 20,639
  • 15
  • 57
  • 92