PS/2 things
PS/2 things
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
Does USB not use interrupts?
1 0 ReplyNo. It's polling based
1 0 ReplyActually 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.
1 0 Reply
Ah yes, the little old interrupt
1 0 ReplyUnderrated meme
1 0 ReplyHelp me understand pls?
1 0 ReplyPs/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.
2 0 Reply
What bothers me the most here is that those are 64 bit instructions, which did not exist when PS/2 was a Thing. But I still chuckled, nice work.
Back then our registers were 32 bits wide, and we liked it 🤣
1 0 ReplyAlright this has me giggling this morning
1 0 Reply