Need help with a project

Talk about anything not related to Transcendence.
Post Reply
schilcote
Militia Captain
Militia Captain
Posts: 726
Joined: Sat Feb 02, 2008 7:22 pm

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
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

Sounds interesting, I've been looking to become involved in such a project for the experience.
Do you have MSN or similar? If so mine's kierangm[ATE]gmail[DAUT]com
schilcote
Militia Captain
Militia Captain
Posts: 726
Joined: Sat Feb 02, 2008 7:22 pm

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!)

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;
}
EDIT

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
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

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 :P
schilcote
Militia Captain
Militia Captain
Posts: 726
Joined: Sat Feb 02, 2008 7:22 pm

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.
[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
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

Any update?
schilcote
Militia Captain
Militia Captain
Posts: 726
Joined: Sat Feb 02, 2008 7:22 pm

Not really. :cry: 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
Post Reply