10
PS/2 things (lemmy.world)
submitted 1 month ago* (last edited 1 month ago) by carrylex@lemmy.world to c/programmer_humor@programming.dev

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

top 9 comments
sorted by: hot top controversial new old
[-] fulg@lemmy.world 1 points 1 month ago

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 🤣

[-] somethingsomethingidk@lemmy.world 1 points 1 month ago
[-] darthsid@lemmy.world 1 points 1 month ago
[-] fatalicus@lemmy.world 2 points 1 month ago

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.

[-] Gobbel2000@programming.dev 1 points 1 month ago

Does USB not use interrupts?

[-] CEbbinghaus@lemmy.world 1 points 1 month ago
[-] InverseParallax@lemmy.world 1 points 1 month ago* (last edited 1 month ago)

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.

[-] tengkuizdihar@programming.dev 1 points 1 month ago

Ah yes, the little old interrupt

[-] nek0d3r@lemmy.world 1 points 1 month ago

Alright this has me giggling this morning

this post was submitted on 05 Oct 2024
10 points (100.0% liked)

Programmer Humor

19623 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS