News for hackers. Stuff that matters.
Re:What's your favorite weird CPU instruction? any architect... by vincent-manis on Sunday November 21, 2021 @08:15PM (#29301598)
The IBM 1401 had instructions for reading a punch card, printing a line on the printer, and punching a card. It also had an instruction (Write, Read, and Punch) that did all 3 at once (this machine had no channels/DMA, so this was how you got overlap). I'm told that watching a program run was funny: the machine would sit silent, then all 3 peripherals would spring into action, and then there would be silence.

The past is truly a different world.

Re:What's your favorite weird CPU instruction? any architect... by Dr_Jefyll on Monday November 22, 2021 @08:15AM (#29305986)
Picking up on the "three at once" theme, the 1-bit computer I built in the 1980's has an instruction that does three things.

The computer only has one instruction, so I didn't bother to give the instruction a name. But it performs an input, an output and a 2-way branch. I hope this is weird enough to deserve mention in this thread. :)

The project was mentioned at least twice previously on HN:

https://news.ycombinator.com/item?id=12469790

https://news.ycombinator.com/item?id=7616831