Page 1 of 1
What do I do next
Posted: Mon Jul 28, 2008 4:34 pm
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

. 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.
Re: What do I do next
Posted: Mon Jul 28, 2008 4:37 pm
by DrLink
Try making it into a disk image and booting it in a PC emulator like Bochs, Virtual PC, VMware, or QEMU?
Re: What do I do next
Posted: Mon Jul 28, 2008 4:51 pm
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.
Re: What do I do next
Posted: Mon Jul 28, 2008 5:18 pm
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
Re: What do I do next
Posted: Tue Jul 29, 2008 1:52 am
by AJ
Hi,
For your bootloader question, I maintain that the best place is
Bona Fide OS Development.
Cheers,
Adam
Re: What do I do next
Posted: Tue Jul 29, 2008 5:35 am
by DeletedAccount
Yup , get the 386 manuals , Alexie A Frounze and Chris Geise Pages and The wiki of this site
Regards
Sandeep Mathew
Re: What do I do next
Posted: Tue Jul 29, 2008 6:29 am
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.
Re: What do I do next
Posted: Tue Jul 29, 2008 2:47 pm
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.
Re: What do I do next
Posted: Tue Jul 29, 2008 4:37 pm
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
Re: What do I do next
Posted: Tue Jul 29, 2008 6:20 pm
by elfenix
....
Might I introduce you to the concept of version control?
See: mercurial, git, subversion, cvs.......
Re: What do I do next
Posted: Tue Jul 29, 2008 6:21 pm
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?
Re: What do I do next
Posted: Wed Jul 30, 2008 2:34 am
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
Re: What do I do next
Posted: Wed Jul 30, 2008 3:20 am
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
Re: What do I do next
Posted: Wed Jul 30, 2008 11:15 am
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.