What do I do next

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
zbeos
Posts: 6
Joined: Mon Jul 28, 2008 4:16 pm

What do I do next

Post by zbeos »

Ok i have been a programmer for quite a while now.
And i have been coming up with ideas.
I have got a basic kernal. I want to know how to change it and make it more, well, I want it to do more. But I dont know what files to change :oops: . I also have a bootloader thing. How do I test what i have now before i go and add. I have yasm 2.1. Pleese help soon.
DrLink
Member
Member
Posts: 25
Joined: Wed May 21, 2008 6:10 pm
Contact:

Re: What do I do next

Post by DrLink »

Try making it into a disk image and booting it in a PC emulator like Bochs, Virtual PC, VMware, or QEMU?
zbeos
Posts: 6
Joined: Mon Jul 28, 2008 4:16 pm

Re: What do I do next

Post by zbeos »

well im really new to the os stuff so what and how do i make it into a disk image. And should all the file for the os be in the same foler because they arent.
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: What do I do next

Post by suthers »

Just a check, don't be insulted, have you figured out how to compile, assemble and link it yet?
Oh and I presume since you don't know what to modify, I presume you copied and pasted your whole kernel?
VERY bad idea...
Jules
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: What do I do next

Post by AJ »

Hi,

For your bootloader question, I maintain that the best place is Bona Fide OS Development.

Cheers,
Adam
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: What do I do next

Post by DeletedAccount »

Yup , get the 386 manuals , Alexie A Frounze and Chris Geise Pages and The wiki of this site
Regards
Sandeep Mathew
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: What do I do next

Post by Adek336 »

VERY bad idea...
no i think it's just fine to start with modyfing a simple kernel it might be as much fun as doing one yourself (though you get more satisfaction when you know all the code is yours). and before anybody writes that the original poster should first learn application programming: I disagree. If somebody has the motivation to start hard, it's just fine :) if it will be too hard he can always cease to program an os so no harm done.
zbeos
Posts: 6
Joined: Mon Jul 28, 2008 4:16 pm

Re: What do I do next

Post by zbeos »

my kernal is only 3 files and i wrote it all myself but I am afraid to cange certain things. because it might hurt me in the futer like this one program i made. I had to start all over.
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: What do I do next

Post by Adek336 »

have you considered making backup copies every once in a while and before each bigger change? (and not just one backup, a whole set of backups, each tagged with a date)
And if you code in C you may temporarily go with

Code: Select all

//new version
void x() {
}
// old version
// void x() {
// y();
//}
or #if 0

Code: Select all

void x() { }
#if 0
void x() { y() }
#endif
or some more sophisticated versioning

Code: Select all

//0,1 or 2
#define ROUTINES_OF_MERCY 1

#if ROUTINES_OF_MERCY == 2
void x() { z() }
#endif
#if ROUTINES_OF_MERCY == 1
void x() { y() }
#endif
#if ROUTINES_OF_MERCY == 0
void x() { }
#endif

void v() { ... }

#if ROUTINES_OF_MERCY == 1
uint32 k = 105;
#endif

elfenix
Member
Member
Posts: 50
Joined: Sun Dec 02, 2007 1:24 pm
Libera.chat IRC: elfenix
Location: United States
Contact:

Re: What do I do next

Post by elfenix »

....

Might I introduce you to the concept of version control?

See: mercurial, git, subversion, cvs.......
elfenix
Member
Member
Posts: 50
Joined: Sun Dec 02, 2007 1:24 pm
Libera.chat IRC: elfenix
Location: United States
Contact:

Re: What do I do next

Post by elfenix »

Back on subject,

The biggest question is what you want to accomplish?

Maybe try implementing a simple routine to do something random but cool?

Check on the Wiki for the different methods of "What do I do first".

Maybe try reimplementing a portion of the program and seeing what happens?
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Re: What do I do next

Post by Adek336 »

....
I am startled with your negative response. When reimplementing a subsystem I want to be able to check if I haven't damaged the accompanying code by disabling the new code for a while and enabling the old code. This is not a task for version control software.

edited
Last edited by Adek336 on Wed Jul 30, 2008 4:06 am, edited 1 time in total.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: What do I do next

Post by AJ »

Adek336 wrote:I am startled with your negative response.
?

Why is suggesting version control a negative response? Commiting changes before changing a major part of your kernel allows you to "roll-back" what you have done to a known-good configuration. Not only that, but you also tend to get a diff tool, allowing you to compare changes to your code over time.

Version control is a perfectly valid way of reducing the problem of "help - what if my changes make my kernel unstable!".

Cheers,
Adam
zbeos
Posts: 6
Joined: Mon Jul 28, 2008 4:16 pm

Re: What do I do next

Post by zbeos »

I think it is a very positive response.
I have done that from time to time. But I think it is a very good habit to get into.
Post Reply