Bona Fide OS Development
http://forums.osdever.net/

i cannot make kernel calls
http://forums.osdever.net/viewtopic.php?f=6&t=38
Page 1 of 4

Author:  smeezekitty [ Sun Oct 11, 2009 5:01 pm ]
Post subject:  i cannot make kernel calls

i can load & run child programs
but i still cannot make kernel calls like this
Code:
#define MK_FP( seg,ofs )( (void _seg * )( seg ) +( void near * )( ofs ))
void far main(){
((void (far*)(char *))MK_FP(0x4000, 0x288))("Hi!"); //4000:288 is the address of kernel print
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ freezes or malfunctions
asm {retf} //compiler wants to return near
asm {db 0EAH} //end marker
}

Author:  DudeOfX [ Mon Oct 12, 2009 8:17 pm ]
Post subject:  Re: i cannot make kernel calls

stuff like that one reason why I want a compiler of my own... any luck yet?

Author:  smeezekitty [ Mon Oct 12, 2009 8:36 pm ]
Post subject:  Re: i cannot make kernel calls

DudeOfX wrote:
stuff like that one reason why I want a compiler of my own... any luck yet?

good luck
parsing C is such a horifying task i think i rather fight with current compilers

Author:  DudeOfX [ Mon Oct 12, 2009 8:52 pm ]
Post subject:  Re: i cannot make kernel calls

yea, I've been debating if I should comply with C or just do a language of my own... and also I hear pascal is easier to make ...

everyone wants to program in C so if I don't comply with C standards I lose their willingness to try my compiler... but at the same time I loose willingness to develop a C compiler because it has its complications...

I am also thinking why not BASIC

Author:  smeezekitty [ Mon Oct 12, 2009 8:59 pm ]
Post subject:  Re: i cannot make kernel calls

DudeOfX wrote:
yea, I've been debating if I should comply with C or just do a language of my own... and also I hear pascal is easier to make ...

everyone wants to program in C so if I don't comply with C standards I lose their willingness to try my compiler... but at the same time I loose willingness to develop a C compiler because it has its complications...

oh a while back i wrote a dos multitasker that ran a scripted home made language
Quote:
I am also thinking why not BASIC

BASIC sucks ass!

Author:  smeezekitty [ Tue Oct 13, 2009 6:55 pm ]
Post subject:  Re: i cannot make kernel calls

ahm...

Author:  DudeOfX [ Tue Oct 13, 2009 7:48 pm ]
Post subject:  Re: i cannot make kernel calls

ahm...?

Author:  smeezekitty [ Tue Oct 13, 2009 9:11 pm ]
Post subject:  Re: i cannot make kernel calls

really how do i make kernel calls without crashing

Author:  DudeOfX [ Wed Oct 14, 2009 6:59 am ]
Post subject:  Re: i cannot make kernel calls

when you ask that question is like a ghost town in my head...

Author:  Arrowofdarkness [ Wed Oct 14, 2009 8:23 am ]
Post subject:  Re: i cannot make kernel calls

DudeOfX wrote:
stuff like that one reason why I want a compiler of my own... any luck yet?


Im about to work on one, as a team with my friends. It will be a web oriented, compiled language, with a focus on easy communication. (MySQL, MSSQL, ect) The syntax will be a mix between C# and PHP. We have a syntax sheet almost finished, and we are set to start in the coming months. We'll probably have a rough beta in about a year. ... Thats being optimistic, but it helps when you have a bunch of comp sci majors as friends, at home, and across the world! :P

and it helps that we all agree on what we want, that helps!

Page 1 of 4 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/