Page 2 of 2
Re:KEYBOARD DRIVER/C QUESTION
Posted: Sun Mar 09, 2003 8:30 am
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???
Re:KEYBOARD DRIVER/C QUESTION
Posted: Sun Mar 09, 2003 8:38 am
by Tim
No, because they have no meaning outside of the ring 0 or real-mode x86 environment.
Read
my i386.h.
Re:KEYBOARD DRIVER/C QUESTION
Posted: Sun Mar 09, 2003 9:19 am
by LOneWoolF
thx
Re:KEYBOARD DRIVER/C QUESTION
Posted: Sun Mar 09, 2003 10:17 am
by slacker
can you use labels in inline assembly? like...
asm("startloop:");
asm("jmp startloop");
?
Re:KEYBOARD DRIVER/C QUESTION
Posted: Sun Mar 09, 2003 4:54 pm
by Tim
Yes. AFAIK you can also JMP to C labels.
Re:KEYBOARD DRIVER/C QUESTION
Posted: Mon Mar 10, 2003 4:25 am
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...)