In todays edition of “stuff that I found in my storage” a PS/2 meme
Image transcription:
mov rax, rbx add rax, rcx HELLO IT’S THE KEYBOARD I HAVE AN IMPORTANT MESSAGE E
Ah yes, the little old interrupt
Alright this has me giggling this morning
Underrated meme
Help me understand pls?
Ps/2 keyboards used interrupt when transferring data, meaning instead of waiting for the cpu to get the data it is trying to send when it is free, it will just interrupt what the cpu is currently doing and tell it to process what the keyboard is sending.
Does USB not use interrupts?
No. It’s polling based
Actually it’s both, there’s polling with a timeout interrupt if an incoming urb hasn’t been processed quickly.
https://crlab.ece.ucr.edu/usbgps/ohci_uhci.html
This way you can take them in batches at regular intervals.