azblue wrote:For keyboard input, it's better to ditch the BIOS and write a PS/2 driver; it's ridiculously easy.
If you are still in real mode and using other BIOS services (like DTSCode at this point), I think it makes sense to use BIOS for keyboard input also. Of course at the point OS takes over, BIOS should be thrown away. While the BIOS is usable (at the early boot stage), why not use it? Setting PS/2 hardware when BIOS is still in charge does not sound good.
azblue wrote:it's ridiculously easy
I have a general comment about this and I am not attacking to your writings particularly. Writing good code for handling PS/2 hardware is not "ridiculously" easy. What?! First of all, there are two options: bad code and good code. In this case, writing simple code (bad) for PS/2 is quite easy so you are not very wrong. Maybe it could be in the category "ridiculously easy" and it is not very controversial claim.
Making a good PS/2 driver is almost as hard or as easy as any other common task in operating system development where complicated algorithms are not involved. I do not think I would be totally wrong if I said that operating system development is not ridiculously easy. If we started looking at average PS/2 code, I am afraid that we would find that it is not very good. Why is that, I thought it is supposed to be easy?
With PS/2 hardware, there are things like driver interfaces, interrupt handlers, etc involved. If all this really is "ridiculously" easy to do
properly, then I have underrated average coding skills.