I have problem with my os (pmode)

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
halawa
Posts: 3
Joined: Fri Nov 16, 2007 5:35 am

I have problem with my os (pmode)

Post by halawa »

I have written o.s in pmode with c++ but the kernel doesn't work
why? i'dont :( i'll Attachment thhe o.s src.
Attachments
_src.rar
my os src
(8.64 KiB) Downloaded 17 times
User avatar
Steve the Pirate
Member
Member
Posts: 152
Joined: Fri Dec 15, 2006 7:01 am
Location: Brisbane, Australia
Contact:

Post by Steve the Pirate »

Can you please describe the nature of the problem? That would make helping you a lot easier.

Also, there's some useful info over at the wiki article.

Unfortunatley I can't take a look at your code now, but I can try to help if you're still having problems tomorrow.
Last edited by Steve the Pirate on Wed Nov 28, 2007 5:05 pm, edited 1 time in total.
My Site | My Blog
Symmetry - My operating system.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

NOOOOOOO!!! Not another one! Don't do it!

PLEASE don't post "My OS doesn't work. Why? - heres all my code in a massive attachment" questions! Narrow it down! do some work yourself!
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Ouch - I see that you have taken Bran's tutorial and tried to make the start in to a class-based C++ kernel using RTTI, but have implemented no kind of C++ support.

As Steve suggested, read the wiki article and then start off by implementing your kernel 'C-style' (forget classes for the moment until you have a memory manager).

I would also suggest that you start by building a small working unit (perhaps just something that has a short int pointer to 0xB8000 and puts a letter in the top corner of the screen). Once that is working, gradually extend, compling and testing as you go.

Cheers,
Adam
maverick777
Member
Member
Posts: 65
Joined: Wed Nov 14, 2007 3:19 pm

Post by maverick777 »

Yeah Im new but honestly Ive found what AJ has said to be true, even doing something as minimal as printing a letter to the screen can bring up problems . Starting that way is the best way as you are starting in infinitisimal steps and the concepts from doing such a small thing can be applied to many other things.

I spent over 2 days just trying to get my keyboard to display 1 typed character to the screen.(quite stressful at times) Many may see that as wasted time, I dont as I know I have gained alot in the process of getting this to work.
Post Reply