Page 1 of 1
The kernal
Posted: Sun Nov 16, 2008 9:48 am
by cotton509
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
Posted: Sun Nov 16, 2008 9:53 am
by kmtdk
My quistion is:
what are you asking about ?
is it why you postes gets locked, or somehting about kernel delevention ?
KMT dk
Re: The kernal
Posted: Sun Nov 16, 2008 10:06 am
by cotton509
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
Posted: Sun Nov 16, 2008 10:11 am
by Blue
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.
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.
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: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.
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?
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.
cotton509 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.
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 friend
Blue
Re: The kernal
Posted: Sun Nov 16, 2008 10:15 am
by cotton509
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
Re: The kernal
Posted: Sun Nov 16, 2008 10:16 am
by M-Saunders
cotton509 wrote:I have one good quistion what code should be used for the ps asm, c, c++, d.
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.
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
Re: The kernal
Posted: Sun Nov 16, 2008 10:37 am
by neon
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.
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.
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.
Re: The kernal
Posted: Sun Nov 16, 2008 10:41 am
by cotton509
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
Posted: Sun Nov 16, 2008 10:43 am
by neon
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.
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).
Re: The kernal
Posted: Sun Nov 16, 2008 10:46 am
by cotton509
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
Posted: Sun Nov 16, 2008 10:53 am
by cotton509
this is my first kernal:
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. */
That kernal is in c i will use c and c++ i will post my c++ one to.
Re: The kernal
Posted: Sun Nov 16, 2008 11:04 am
by Troy Martin
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.
Re: The kernal
Posted: Sun Nov 16, 2008 11:25 am
by M-Saunders
cotton509 wrote:Code: Select all
videoram[0] = 65; /* character 'Hello world' */
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...
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
Re: The kernal
Posted: Sun Nov 16, 2008 11:33 am
by Combuster
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.