KEYBOARD DRIVER/C QUESTION

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.
LOneWoolF

Re:KEYBOARD DRIVER/C QUESTION

Post by LOneWoolF »

ops, the second return isn't there ::)

erm...

the function is [tt]unsigned int getkey()[/tt]


i just want to know where i find the [tt]portin()[/tt] and the [tt]in()[/tt]...
shouldn't they be a std c function???
Tim

Re:KEYBOARD DRIVER/C QUESTION

Post by Tim »

No, because they have no meaning outside of the ring 0 or real-mode x86 environment.

Read my i386.h.
LOneWoolF

Re:KEYBOARD DRIVER/C QUESTION

Post by LOneWoolF »

thx :)
slacker

Re:KEYBOARD DRIVER/C QUESTION

Post by slacker »

can you use labels in inline assembly? like...
asm("startloop:");
asm("jmp startloop");

?
Tim

Re:KEYBOARD DRIVER/C QUESTION

Post by Tim »

Yes. AFAIK you can also JMP to C labels.
LOneWoolF_

Re:KEYBOARD DRIVER/C QUESTION

Post by LOneWoolF_ »

OK THANK YOU
Now I got a working keyboard and printed my screen full of little characters *gg*

BUT
this is in a loop

i'd like a good doc and maybe a sample code for IRQs and how to tell the machine that the IRQX is the function for irq #X...

and again some questions:
i'd like some docs about browsing fd and hd and how i load and execute files, with a detailed description...
i see a lot of MOVs and so on in my bootstrapper and don't know which number where does what... looks weird, all the adresses...
where can i find a list of the adresses for e.g.: video card, usb,..... (without that it's not very easy to develope an OS...)
Post Reply