OS dev
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: OS dev
Wouldn't it be a good exercise to do it yourself? And even if you aren't up to the task, it might be a good exercise for... knowing where to look.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: OS dev
I want, but it's very difficult found manuals and more of this subject.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: OS dev
They're easy to find but you need to learn how to use Web search engines, like Google or Bing. Or did you really mean that you found those? If you did, what are you having problems with? Ask a question and we will answer.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: OS dev
Thanks for make me the life harder.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: OS dev
This may be why you're having trouble using search engines.rafaelcor wrote:Thanks for make me the life harder.
-
- Posts: 16
- Joined: Sun Dec 08, 2013 4:14 pm
- Bender
- Member
- Posts: 449
- Joined: Wed Aug 21, 2013 3:53 am
- Libera.chat IRC: bender|
- Location: Asia, Singapore
Re: OS dev
I admit that I've myself committed such mistakes and I was pointed to the beginner's mistakes page.Hello,
my friend and I are developing an OS and we need CODE examples(C and ASM) of configuring the GDT and the IDT correctly, and then using video and keyboard interrupts in the protected mode.
Thanks to all the forum.
Rafael Cordano
Well history repeats itself here you go :
http://wiki.osdev.org/Beginner_Mistakes
Believe me, there is no one that can give you something like this, what you're asking is somewhat like telling your friends do the homework for you.
Video and Keyboard Interrupts? Just like that?
A quote to make people understand :
It takes a bit more effort, at least more than writing a hello world application.One does not simply enable interrupts in Protected Mode.
Writing to video memory is easy, you just need to write to 0xB8000, or 0xA0000 for VGA Graphic Modes. And this does NOT require interrupts.
I don't remember correctly but there is a formula to calculate the screen offset. If my memories are correct then it should be y * screen max y + screen max x + Video Memory location. So if you want to print 'A' at 6,9 on a 80x25 screen, it must be:
(9 * 25 + 6)decimal + 0xB8000.
If you write 'A' to this memory location it should print it at 6, 9.
For colored text, the high bits of any register should be the color (?), and the low bits should represent the character (?).
Something like :
Code: Select all
; AH should contain the color, green over white
mov ah, 0x2F
; AL should contain the character
mov al, 'A'
; Write to video memory
mov [0xB8000], ax
You can use variables, loops to make it print strings, move hardware cursor etc.
One more thing :
OSDev is itself hard.Thanks for make me the life harder.
PS. The thread title is....
Hope this helps,
Bender/sid123
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
(R3X Runtime VM)(CHIP8 Interpreter OS)
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: OS dev
You may not realize this but it's you who is making your life harder.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: OS dev
OSDeving is hard bro, there aren't very many programming related fields that are harder than it. If you want to succeed, first prepare to fail. A lot. If you want to find material to work from, I suggest the linux kernel or something of the like; it works, it accessible, and the inner workings are so terribly formatted you are bound to make something better (I'm quite serious, the code looks atrocious).rafaelcor wrote:Thanks for make me the life harder.
Assuming you working with learned knowledge and not a simple copy-paste, when setting up interrupts, expect them to not work on your first try, triple fault on round two, hang your system (not just the VM, your local machine as well) on the third attempt, not show up at all on attempt number 4, and only after the first four failed attempts will they work properly. On the plus side, you'll now have an excellent understanding of what does what and how to do the whole thing properly next time. Be prepared for the long haul and a lot of frustration. Coffee and a pen and paper helps, on occasion.
As an aside, while I do support the idea that people should do their own research first, and that many questions can be answered on the wiki, this should in no way prevent the resulting responses from being polite or productive.
-
- Posts: 4
- Joined: Sun Jan 05, 2014 4:20 am
Re: OS dev
What do you think the point of OSDeving is about? The good part about it is to write your own code. The OSDev Wiki is what we use for ideas and tutorials for our OS.
- Bender
- Member
- Posts: 449
- Joined: Wed Aug 21, 2013 3:53 am
- Libera.chat IRC: bender|
- Location: Asia, Singapore
Re: OS dev
Now THAT makes me cry.What do you think the point of OSDeving is about?
Why do you think we are exploring the space, inventing new things, discovering new secrets of nature,
etc.?
It's because of one characteristic that separates the human brain from all other animals,
It's called thinking.
We humans are much more curious than other organisms, let's take an example.
Suppose there is a watch lying in middle of the woods.
If a lion comes across that watch it may simply kick it off it's way, or it may play with it
for a while but it wouldn't care much and there is a 99.99 percent chance it would not even
remember it the next day.
But when a human comes across the watch he/she may wonder : "How can a watch be in the middle of all this grass, where did it come from, who does it belong to...."
The next day his/her friend tells him/her that he had lost his watch while walking around the woods.
What is going to be his/her reaction?
In the same way when we look at machines, operating systems, programs we wonder, "How do they work?"
At least for me it works like that don't know about you guys.
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
(R3X Runtime VM)(CHIP8 Interpreter OS)