The kernal

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Locked
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

The kernal

Post 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.
User avatar
kmtdk
Member
Member
Posts: 263
Joined: Sat May 17, 2008 4:05 am
Location: Cyperspace, Denmark
Contact:

Re: The kernal

Post by kmtdk »

My quistion is:
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.
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: The kernal

Post 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.
User avatar
Blue
Member
Member
Posts: 31
Joined: Thu Aug 02, 2007 6:34 am
Location: on the stack

Re: The kernal

Post 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
Last edited by Blue on Sun Nov 16, 2008 10:17 am, edited 1 time in total.
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: The kernal

Post 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
M-Saunders
Member
Member
Posts: 155
Joined: Fri Oct 27, 2006 5:11 am
Location: Oberbayern
Contact:

Re: The kernal

Post 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
MikeOS -- simple, well-documented x86 real-mode OS written in assembly language
http://mikeos.sourceforge.net
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: The kernal

Post 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.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: The kernal

Post 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.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: The kernal

Post 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).
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: The kernal

Post 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.
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: The kernal

Post 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.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: The kernal

Post 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.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
M-Saunders
Member
Member
Posts: 155
Joined: Fri Oct 27, 2006 5:11 am
Location: Oberbayern
Contact:

Re: The kernal

Post 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
MikeOS -- simple, well-documented x86 real-mode OS written in assembly language
http://mikeos.sourceforge.net
User avatar
Combuster
Member
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

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked