OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 8:34 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Interrupt Handling?
PostPosted: Fri Aug 11, 2017 7:21 pm 
Offline

Joined: Sun Jul 16, 2017 9:31 pm
Posts: 4
So i've got the code from the bare bones section of osdev.org, and I have no idea where else I should go. I want to stay in VGA text mode, and I want keyboard and mouse input.
I have searched around the website for a while and I still can't find anything that can help me, so links to documentation will be very well appreciated :)


Edit:
(Almost forgot to say, i'm also stumped on handling interrupts!)


Top
 Profile  
 
 Post subject: Re: Interrupt Handling?
PostPosted: Fri Aug 11, 2017 7:35 pm 
Offline
Member
Member

Joined: Thu Aug 13, 2015 4:57 pm
Posts: 384
TheScripterGeek wrote:
So i've got the code from the bare bones section of osdev.org, and I have no idea where else I should go. I want to stay in VGA text mode, and I want keyboard and mouse input.
I have searched around the website for a while and I still can't find anything that can help me, so links to documentation will be very well appreciated :)


Edit:
(Almost forgot to say, i'm also stumped on handling interrupts!)


For keyboard and mouse there's basically two choices, PS/2 and USB. USB is by far more complex and requires quite a bit of knowledge, so you probably want to stick with PS/2. Even if your physical machine doesn't have PS/2, the BIOS emulates PS/2 from USB keyboards.

For PS/2 you should check the wiki for both PS/2 controller and PS/2 keyboard. These are two different things, the controller and keyboard. They're both relatively simple.

As for interrupts, you're going to have to be more specific. Read the intel manuals?


Top
 Profile  
 
 Post subject: Re: Interrupt Handling?
PostPosted: Fri Aug 11, 2017 7:46 pm 
Offline

Joined: Sun Jul 16, 2017 9:31 pm
Posts: 4
No I have not, and by interrupt handling I mean help with the keyboard, and I don't quite understand the PS/2 keyboard page(http://wiki.osdev.org/PS/2_Keyboard)
Mainly I pretty much just need help with interrupt stuff like keyboard presses and mouse stuff

Sorry if I seem professional, i'm new to making an OS


Top
 Profile  
 
 Post subject: Re: Interrupt Handling?
PostPosted: Fri Aug 11, 2017 8:35 pm 
Offline
Member
Member

Joined: Thu Aug 13, 2015 4:57 pm
Posts: 384
TheScripterGeek wrote:
No I have not, and by interrupt handling I mean help with the keyboard, and I don't quite understand the PS/2 keyboard page(http://wiki.osdev.org/PS/2_Keyboard)
Mainly I pretty much just need help with interrupt stuff like keyboard presses and mouse stuff

Sorry if I seem professional, i'm new to making an OS

Is someone supposed to be able to answer to you in a meaningful way? What exactly do you want from us? You don't ask anything specific..

As for the intel manuals, you should read them. The old 386 manual maybe easier and is a lot shorter, though obviously doesn't cover long mode (64-bit), nor some of the finer details and newer stuff, but it has the basics for protected mode, interrupts, etc.

Bottom line, you want to do osdev on the x86, you need to read the manuals.


Top
 Profile  
 
 Post subject: Re: Interrupt Handling?
PostPosted: Mon Aug 14, 2017 8:38 am 
Offline
Member
Member

Joined: Wed Aug 09, 2017 7:37 am
Posts: 80
TheScripterGeek wrote:
So i've got the code from the bare bones section of osdev.org, and I have no idea where else I should go. I want to stay in VGA text mode, and I want keyboard and mouse input.
I have searched around the website for a while and I still can't find anything that can help me, so links to documentation will be very well appreciated :)


Edit:
(Almost forgot to say, i'm also stumped on handling interrupts!)


For keyboard, PS2_Keyboard. By the way, do you understand this code by the way or are you just copying and pasting thinking that is what good OS developers do? The Bare Bones tutorial simply prints Hello, kernel World! Do you have any idea how it works and why 0xb800 is involved?

Printing_To_Screen will explain things. However, don't copy and paste out of that as well.
Beginner_Mistakes and Required_Knowledge should be the only thing you copy and paste out.

For anyone reading this, like okwani, INT 0x13 has nothing to do with VGA, keyboards or learning x86 Assembly.

The Intel manual has things at Section 6 (Basic Architecture - 1/10 volume) about handling. Now you do have to read it :D
https://software.intel.com/en-us/articles/intel-sdm

Learn user space first.

users browsing this forum... uh oh


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 175 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group