bootdisk

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Karl

bootdisk

Post by Karl »

Hello, i written a program using microsoft visual c++ 6.0.
Then i copied onto a disk and reboot the computer. Why does it not print Hello World but:
No System, Enter Disk then press return?

program:

#include <stdio.h>

int main() {
printf("Hello World");
return 0;
}
frank

Re:bootdisk

Post by frank »

1. ms visual c does not output 16bit binary ,
switch to pmode first then jump to your kernel.
(using nasm)
be sure ms visual c outputs in binary.
2. printf won't work cause there is not printf yet
(see the osdev faq at mega tokyo)
gedeon

Re:bootdisk

Post by gedeon »

1- Visual C++ produce code for windows, don't use this for os coding
2- When you boot on a normal floppy disk , windows is not loaded, and no os is loaded anyway
3- There is a long and hard way before printing "hello world" by your own os

You should read some post on "bootdisk" to understand the way your computer boot, and ask some question here. There are many developpers who will be enjoy to help you.
Tim

Re:bootdisk

Post by Tim »

1- Visual C++ produce code for windows, don't use this for os coding
You can use Visual C++ to write OS-independent code, as long as you're happy loading the PE EXEs it produces. It's the run-time libraries that only run on Windows, not the code.
Post Reply