Need help with a project
Well, I've decided to write an operating system. Not windows, nothing that complex, I just want to learn portable C and always wanted to write an OS. So who will help me?
[schilcote] It doesn't have to be good, it just has to not be "wow is that the only thing you could think of" bad
Okay Yugi, you've been added to the team. My email (I think that's what you mean) is Schilcotejr AT msn DOT com. Here's the code so far (don't laugh!)
EDIT
Does anybody know of a C compiler that can generate .bin files? I can't get DMC to do anything but exe files.
Code: Select all
#include <dos.h>
int main ()
{
_AH = 0x0A; /* Specify that we want service number 0Ah */
_AL = 'H';
_BH = 0; /* Screen page 0 */
_CX = 1; /* Repeat the character ten times */
geninterrupt (0x10); /* Call interrupt 10h. */
_AH = 0x0A; /* Specify that we want service number 0Ah */
_AL = 'e'; /* (ASCII 42 dec = '*') */
_BH = 0; /* Screen page 0 */
_CX = 1; /* Repeat the character ten times */
geninterrupt (0x10); /* Call interrupt 10h. */
_AH = 0x0A; /* Specify that we want service number 0Ah */
_AL = 'l'; /* (ASCII 42 dec = '*') */
_BH = 0; /* Screen page 0 */
_CX = 2; /* Repeat the character ten times */
geninterrupt (0x10); /* Call interrupt 10h. */
_AH = 0x0A; /* Specify that we want service number 0Ah */
_AL = 'o'; /* (ASCII 42 dec = '*') */
_BH = 0; /* Screen page 0 */
_CX = 1; /* Repeat the character ten times */
geninterrupt (0x10); /* Call interrupt 10h. */
return 0;
}
Does anybody know of a C compiler that can generate .bin files? I can't get DMC to do anything but exe files.
[schilcote] It doesn't have to be good, it just has to not be "wow is that the only thing you could think of" bad
Thanks ^_^ Keep in mind I'll mostly be bugtesting; I don't know if this is the sort of thing you're looking for?
Of course I can always learn to help with coding and such, it is experience I'm after
- Yugi
P.S. There is of course the matter of money, of which I want none
Of course I can always learn to help with coding and such, it is experience I'm after
- Yugi
P.S. There is of course the matter of money, of which I want none
Good, because I have none!
I still need to find a way to get my compilers (I have some GCC port right now called MinGW in addition to DMC) to output binary files, which DMC doesn't want to do. I'll experement with MinGW a little, and if that doesn't work, I'll have to do some more googling.
I still need to find a way to get my compilers (I have some GCC port right now called MinGW in addition to DMC) to output binary files, which DMC doesn't want to do. I'll experement with MinGW a little, and if that doesn't work, I'll have to do some more googling.
[schilcote] It doesn't have to be good, it just has to not be "wow is that the only thing you could think of" bad
Not really. But I did find a program that will strip my EXE files into BIN files. Maybe I'll look at some Linux code and try to figure out how it works.
[schilcote] It doesn't have to be good, it just has to not be "wow is that the only thing you could think of" bad