cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : Lounge : boot assembly programs
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

post  boot assembly programs

Nandor (83)
cam someone tell me where can i find an assembly interpreter for writing a program which can be launched from a disk without OS?
|
helios (1523)
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
Duoas (1597)
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!
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us