Bona Fide OS Developer
View unanswered posts | View active topics It is currently Sun Oct 21, 2018 4:15 am



Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  Next
 i cannot make kernel calls 
Author Message
Post 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
}


Sun Oct 11, 2009 5:01 pm

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post Re: i cannot make kernel calls
stuff like that one reason why I want a compiler of my own... any luck yet?


Mon Oct 12, 2009 8:17 pm
Profile
Post 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


Mon Oct 12, 2009 8:36 pm

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post 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


Mon Oct 12, 2009 8:52 pm
Profile
Post 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!


Mon Oct 12, 2009 8:59 pm
Post Re: i cannot make kernel calls
ahm...


Tue Oct 13, 2009 6:55 pm

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post Re: i cannot make kernel calls
ahm...?


Tue Oct 13, 2009 7:48 pm
Profile
Post Re: i cannot make kernel calls
really how do i make kernel calls without crashing


Tue Oct 13, 2009 9:11 pm

Joined: Sat Jul 25, 2009 9:15 am
Posts: 257
Post Re: i cannot make kernel calls
when you ask that question is like a ghost town in my head...


Wed Oct 14, 2009 6:59 am
Profile

Joined: Sat Jul 25, 2009 9:41 am
Posts: 58
Post 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!


Wed Oct 14, 2009 8:23 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3, 4  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin and tweaked by the BF Team.