I'm writing a hobby OS and the first thing I want to do is access PS/2 devices (it's a somewhat legacy, 32 bit OS, so I figured it's relevant to ask here?).
I can see my PS/2 devices and I want to read data from them. If a device is sending several bytes, what happens when I read one? I understand that there is only one place in memory, 0x60, where these bytes show up. So is the following true:
If I read a byte from 0x60 and the device has more to send, then the next byte is stored in 0x60 just because I read there? If that isn't true, how does the device know when to send more data, and how do I know it has sent the next byte so I can read it?