[try Beta version]
Not logged in

 
boot assembly programs

Nov 22, 2008 at 7:09pm
cam someone tell me where can i find an assembly interpreter for writing a program which can be launched from a disk without OS?
Nov 23, 2008 at 8:40pm
There's no such thing as an "Assembly interpreter". There are assemblers, though, and many (at least one for every CPU architecture ever manufactured, including CPUs, GPUs, and a long et cetera).
Assuming you're talking about an x86, there's NASM, MASM, TASM. Google any of those, but keep in mind that NASM is free.
Last edited on Nov 23, 2008 at 8:56pm
Nov 23, 2008 at 10:12pm
This is only really a feasible thing to do for three reasons:

1. You are writing a boot loader
2. You are writing an OS
3. You are writing a program that only operates itself (rare)

In any case, you'll have to think about how you will access the disk, and you will have to initialize the hardware properly. For an x86, there are specific steps to the boot-up process and protected-mode initialization you must follow.

You might want to get and look through the sources for grub as a good start: http://www.gnu.org/software/grub/

There is also the Write Your Own Operating System FAQ:
http://www.superfrink.net/athenaeum/OS-FAQ/os-faq.html

Good luck!
Topic archived. No new replies allowed.