The kernal
The kernal
This is going to be locked for no reason so far i have got my second stage loader built i am making my kernal the problem is my posts keep geting locked. I have nasm i have the a02 bus unlocked so i can use all my ram. i just keed to compleat a kernal.
Re: The kernal
My quistion is:
what are you asking about ?
is it why you postes gets locked, or somehting about kernel delevention ?
KMT dk
what are you asking about ?
is it why you postes gets locked, or somehting about kernel delevention ?
KMT dk
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
Re: The kernal
I have one good quistion what code should be used for the ps asm, c, c++, d. Which is the fasteset to get programing done and wich supports more hardware control. Example read and write directly to the hdd in the 0s and 1s.
Re: The kernal
Hi,
When your topics gets locked, then you should sit down and consider why.
Firstly you are breaking forum rules (but I have already told you this in another topic, and I don't think you will read it anyways).
Secondly your english is poor, or at least your grammar is. Before you press "Submit" you should read over your post, and check what it is you write.
Thirdly I have a hard time figuring out what it is you are asking about.
Take 10 minutes to write down what it is you really want to ask about/inform us about, and then another 10 minutes to check your post. Then it _might_ be that your topic won't get locked.
Edit:
I see that you have edited your post, so my second quote does not apply anymore. Instead I will try to answer your new question.
Blue
When your topics gets locked, then you should sit down and consider why.
Firstly you are breaking forum rules (but I have already told you this in another topic, and I don't think you will read it anyways).
Secondly your english is poor, or at least your grammar is. Before you press "Submit" you should read over your post, and check what it is you write.
Thirdly I have a hard time figuring out what it is you are asking about.
I see that you know your topic will be locked. I see you have built your second stage loader. I see (again) that you have a problem with your topics getting locked. I see you have A20 enabled and thereby you can use all your RAM. I see you need to complete a kernel. So now you tell me, why did we need this information? Is there a question hidden somewhere? Do you need help making a kernel?cotton509 wrote:This is going to be locked for no reason so far i have got my second stage loader built i am making my kernal the problem is my posts keep geting locked. I have nasm i have the a02 bus unlocked so i can use all my ram. i just keed to compleat a kernal.
Again, I do not really get what you are trying to ask. Are you asking if you can use C++ code in a C kernel, if you use mix some asm code into your C(++) code?cotton509 wrote:Actualy i am a idiot i am using c++ not c c is easyer to write kernals in. with some asm can i mix some asm code for c++ into a c kernal?
edit: yes its possible i found out i hae to link runtime lybrarys thought.
Take 10 minutes to write down what it is you really want to ask about/inform us about, and then another 10 minutes to check your post. Then it _might_ be that your topic won't get locked.
Edit:
I see that you have edited your post, so my second quote does not apply anymore. Instead I will try to answer your new question.
The question of which programming language you should use is one you shall answer yourself. Assembly is very well suited for low level access, manipulating the registers on your own, better optimization etc, but portability is a problem. C has the advantage of portability and compilers these days are very good at optimizing the code. And so I could continue with the other languages, but I suggest you to go read about it on your own. As usually google is your friendcotton509 wrote:I have one good quistion what code should be used for the ps asm, c, c++, d. Which is the fasteset to get programing done and wich supports more hardware control. Example read and write directly to the hdd in the 0s and 1s.
Blue
Last edited by Blue on Sun Nov 16, 2008 10:17 am, edited 1 time in total.
Re: The kernal
Ok i am saying i need help with the kernal i know i can write it all in asm rhats faster for me then yuse the comand line to compile it. Where do you go from now is what i need to know should i go for a library or a gui or a tiny kernal?i am reading os derver.net for help. If i upload my code in a code box could i have hel p to see if it will be any good and what security holes are in it? Thank you.
cotton509
cotton509
-
- Member
- Posts: 155
- Joined: Fri Oct 27, 2006 5:11 am
- Location: Oberbayern
- Contact:
Re: The kernal
Right, after everyone else has rightly given up, I'm going to take my stab at this. Answer these questions clearly and I'll try to help. Otherwise you've lost yet another potential source of assistance.cotton509 wrote:I have one good quistion what code should be used for the ps asm, c, c++, d.
1. What do you mean by 'ps' in the above line?
2. Why do you not run your posts through a spelling checker? Even if English isn't your first language (and I hugely respect polyglots), at least try to write normally with reasonable spelling and punctuation.
3. What is your experience in programming? Have you written non-trivial programs in C, C++, assembly or D? If you have little coding experience, you are WAY in under your depth here. Give it up -- OS development is one of the hardest things you can do in programming. I know how to fix two bricks together with cement, but I wouldn't attempt to build a skyscraper. You have to know your limits.
4. Why do you want to write an operating system?
From reading your posts, I believe that you have almost zero knowledge of 'serious' computing and you really need to build your skills at the ground levels -- eg writing games in VB or similar, and understanding the command line and what assemblers/compilers actually do. I have absolutely no idea why you would even consider tackling the extremely complex world of OS development. But now is your chance to prove me (and others who're sick of you) wrong.
M
MikeOS -- simple, well-documented x86 real-mode OS written in assembly language
http://mikeos.sourceforge.net
http://mikeos.sourceforge.net
Re: The kernal
I think you are asking what to do next. If so, then no one can answer this question but yourself because it is dependent on your end design goals. Most systems would probably develop a small kernel first. Do not attempt a Gui yet as Gui's rely on alot of other components of an OS that needs to be developed first.Ok i am saying i need help with the kernal i know i can write it all in asm rhats faster for me then yuse the comand line to compile it. Where do you go from now is what i need to know should i go for a library or a gui or a tiny kernal?i am reading os derver.net for help. If i upload my code in a code box could i have hel p to see if it will be any good and what security holes are in it? Thank you.
Does it have security holes in it? We dont need to see the code to say that it does (Which I know it does). All software has security holes in them.
Also, all your posts have been locked for a good reason. If you dont know why, ask.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Re: The kernal
Yes i know but may you send me to a good kernal guide i read the bare bones i am getin djgpp for compiling better. What code do you recomend i need at least low level acses to hardware and i think asm is the best for that.edit: I want to know what lanuage you recemend.
Re: The kernal
Assembly and C. Assembly because it is fundamentally low level, C because it was originally designed for systems development (Although C++ can be used too).Yes i know but may you send me to a good kernal guide i read the bare bones i am getin djgpp for compiling better. What code do you recomend i need at least low level acses to hardware and i think asm is the best for that.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Re: The kernal
Thank you for recomendation. I am taking a kernal tha asks for your name and modifying it so when there is a input for a item it will use call(version.c) that file will then display some info on the release.
Re: The kernal
this is my first kernal:
That kernal is in c i will use c and c++ i will post my c++ one to.
Code: Select all
void kmain( void* mbd, unsigned int magic )
{
/* unsigned char *videoram = (unsigned char *) 0xb8000;
videoram[0] = 65; /* character 'Hello world' */
videoram[1] = 0x07; /* forground, background color. */
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: The kernal
Cotton: You do realize that's just the Barebones kernel with a modified comment and no ending brace. And there is no such thing as a "Hello World" character, it's a string of characters.
Stop for a minute and think if you are really ready for this. Do you even know what goes on in the code you posted? If you think you do, tell me. And tell me what bugs are in that code, including the major one that will halt the compilation.
Stop for a minute and think if you are really ready for this. Do you even know what goes on in the code you posted? If you think you do, tell me. And tell me what bugs are in that code, including the major one that will halt the compilation.
-
- Member
- Posts: 155
- Joined: Fri Oct 27, 2006 5:11 am
- Location: Oberbayern
- Contact:
Re: The kernal
Hrm. I'm pretty sure now that this is an elaborate trolling operation It's very clearly honed to get everything wrong in a just-about-understandable way. His spelling is bad, but he wouldn't seriously keep writing "kernal" when 99.9999% of the world calls it "kernel", and I doubt he's spent a lot of time with the internals of the Commodore 64...cotton509 wrote:Code: Select all
videoram[0] = 65; /* character 'Hello world' */
The other posts suggest a calculated trolling effort too: not outlandish enough to get banned immediately, yet bizarre enough to keep us posting responses. So perhaps I'm wrong, but my stance is now: IHBT, and WHTB
M
MikeOS -- simple, well-documented x86 real-mode OS written in assembly language
http://mikeos.sourceforge.net
http://mikeos.sourceforge.net
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: The kernal
Even if it's not a troll, he's broken too many rules and ignored too many warnings from the staff to be left running here.