So I'm working on keyboard input for a very bare bones kernel that I'm throwing together, and I'm completely stuck. I can't seem to find any information online that can tell me the information I need to know.
My kernel is running in protected mode right now, so I can't use the "normal" real mode keyboard routines without jumping into real mode and back, which I'm trying to avoid. So basically, I want to access my keyboard from protected mode. Does anyone know how to do this? The only thing I have found so far is that it involves talking to the controller directly using in/out ports, but beyond that I'm stumped. This is, of course, not something that comes up very often as usually asm tutorials assume you're running an OS underneath...
I'm very new to x86 assembly, so really I'm just looking for some good resources for working with the standard hardware from protected mode. I think I'll be good if I can get that going.
Oh, if you're going to post code examples, I'm compiling the assembly bits with NASM, and linking it to C bits compiled with DJGPP if it matters.
Thanks