in / out ports

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.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: in / out ports

Post by neon »

sweetgum wrote:I don't see whats wrong with copying and pasting a scan code table.
There are different types of scan code sets that have different formats used in pc compatible keyboards that I have not seen in any tutorial thus forcing you to write them manually anyways. There is no "standard set" (Although scan code set 2 seems to be more common.) It is a good habit to get into. Besides that, it will not abid to your projects coding conventions and standards making it look more hacked together.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Re: in / out ports

Post by System123 »

The next step will now be to read the scan code off the keyborads port and then make it print to the console.
Gizmic OS
Currently - Busy with FAT12 driver and VFS
Post Reply