Page 4 of 5

Re: Help With Patricknet Development

Posted: Fri Nov 07, 2008 11:16 pm
by babylon2233
From http://wiki.osdev.org/Printing_to_Screen.

Basic string write function.

Code: Select all

/* note this example will always write to the top
   line of the screen */
void write_string(int colour, const char *string)
{
	volatile char *video=(volatile char*)0xB8000;
	while(*string!=0)
	{
		*video=*string;
		string++;
		video++;
		*video=colour;
		video++;
	}
}


Re: Help With Patricknet Development

Posted: Fri Nov 07, 2008 11:23 pm
by Troy Martin
If you're going to use that you may want to modify it to use a global cursor pointer instead. It'll allow you to print from any screen location instead of just the top.

Re: Help With Patricknet Development

Posted: Sat Nov 08, 2008 4:05 pm
by PatrickV
Thanks. I am trying to create drivers and libraries which has been proven difficult. I tried the printf and clear_screan_f from the c kernel help from osdever.net but it went in up in smoke. Please add the code it my existing code as i said before so i know where things. I just jumped form asmembly to c language so it is a big change for me to learn.

Help Me

Posted: Fri Nov 14, 2008 8:44 pm
by PatrickV
I need some help. I got some text printing happening but now i want to add a feature of typing in command which i use c langauge. I it is very hard to find c langauge stuff around here. Any help would be great to finish beta 0.2

Re: Help With Patricknet Development

Posted: Fri Nov 14, 2008 9:05 pm
by Troy Martin
So you need help with a keyboard driver and command interpreter/shell?

Re: Help With Patricknet Development

Posted: Fri Nov 14, 2008 9:36 pm
by PatrickV
Yes! I guess this the case. I am hoping that i can get the cmd prompt system sorted then jump and create a gui which i need help later on. But yes i need help with keyboard driver and command interpreter/shell! Keyboard driver might be tricky? No sure? Becasue their are different keyboards and keyboard formats. I need a some help to get it right. Plus i need to rearange the website so it is much easeir for you guys to browse it.

Re: Help With Patricknet Development

Posted: Fri Nov 14, 2008 9:54 pm
by babylon2233
How far have you gone right now?

Re: Help With Patricknet Development

Posted: Sun Nov 16, 2008 2:07 pm
by PatrickV
No where. that's the problem. I don't know how to create one. I wouldn't be here if i didn't know how. As i said earler that i jump from assembly to C and have to start learning all over again. Plus I've been working on a print/screen driver to put information to the screen which turned out really good. But i want to make interactive. That was the problem in the last version. I need help in that department and don't know where to start. I want to make Patricknet look good of course.

Re: Help With Patricknet Development

Posted: Sun Nov 16, 2008 2:12 pm
by 01000101
PatrickV wrote:But i want to make interactive. That was the problem in the last version. I need help in that department and don't know where to start. I want to make Patricknet look good of course.
Honestly, that should not be on your priority list at the moment.

You should be working on setting up a bootloader (your own or GRUB) and just being able to jump to your kernel and maybe print to the screen some debugging info. You are far from needing to worry about user interaction, as for the next long while, you will be the only user interacting with it.

Re: Help With Patricknet Development

Posted: Sun Nov 16, 2008 2:41 pm
by PatrickV
Done. That's what i been trying to get at. This topic was about change my operating system by using GRUB and C language. Have a look at all the posts i've done in this topic, I can give you a floppy image what i've done so far if you need proff. Otherwise apology will be nice

Re: Help With Patricknet Development

Posted: Sun Nov 16, 2008 3:05 pm
by 01000101
I will not apologize as my point is still valid.
Just because you have what I mentioned above, does not mean you are done with the basics.
You still should not be concerned with superficial coding, you should be improving core functions.

Do you have a working memory manager?
Do you have interrupt handling, or polling routines?
PCI bus enumeration?
Process support; threads and such?
Paging? (not essential, but useful)
Basic error checking or support checks (CPUID, MP/ACPI parsers)?

This list can go on for quite a while. And even once you complete the 'core' functions, it still does not mean that anyone besides yourself will be using it as it will be too unstable and unusable for any real purpose. They are called 'core' functions as they are the support for higher-level items such as an interface.

Re: Help With Patricknet Development

Posted: Sun Nov 16, 2008 3:19 pm
by PatrickV
Hey, Sorry for taking a leak in your pool. I just want to get a keyboard driver and command interpreter/shell to work that's all or get one created. All those things you listed has a vaild point. Unless you are going to show me all of that stuff and how to do it in one day. :lol: I am taking diffrent approches on things with Patricknet. I just came here for some help. i am about 75% sure you don't need that stuff just make a keyboard driver and command interpreter/shell. I just don't knwo where to begin with keyboard driver and command interpreter/shell and how to do it.

Re: Help With Patricknet Development

Posted: Sun Nov 16, 2008 3:39 pm
by M-Saunders
PatrickV wrote:I just don't knwo where to begin with keyboard driver and command interpreter/shell and how to do it.
How much C do you know? Have you written any substantial programs in C before? If not, you're going to find it very difficult. And you don't want to get others to do the work for you -- otherwise you won't understand what's going on. You'll just end up with a bunch of code that you don't understand.

Operating system development is very tricky work. If you haven't got a lot of prior programming experience, you'll repeatedly keep hitting walls as you've been doing for several months! It's not a dead end: go write your own command line interpreter for Windows or a Unix-ish system. Once you understand what it entails, you can transfer those skills to your own OS, but it'll be much harder because you won't have any libraries to support you.

The people on here are very helpful and knowledgeable. But they're not going to write your code for you. And you need to demonstrate some coding ability beforehand; you need to be adept with C to take on the mighty challenge of OS development. Good luck!

M

Re: Help With Patricknet Development

Posted: Sun Nov 16, 2008 3:43 pm
by Troy Martin
Trust M, he's right. I hit the same wall because I had no idea what I was doing. Now I do know.

And if you're looking for a pmode keyboard driver, don't look at me. Even with Brendan's help I had enough bugs to constitute an epic fail.

Re: Help With Patricknet Development

Posted: Sun Nov 16, 2008 3:51 pm
by PatrickV
Can anyone give me links to webiste or operating system i can learn of from. os wiki and members are not helping and i need something to learn from