The Missing Instruction That Crippled Early CPUs
55K views · Aug 2, 2026 · People & Blogs
Comments · 426
@tcmxiyw · 1 month ago
Back in the day one of my colleagues complained to me that he had installed a coprocessor (80287?) and it disappointed him that he could see no increase in performance. I suggested that he should let his compiler know that the coprocessor was available. The next day he told me that it was like I had given him a supercomputer.
54
@mutant0407 · 1 month ago (edited)
There are some very elegant multiply algorithms that work using precalculated tables of squares. This reduces the multiplication of two signed numbers to an addition, three array fetches, two subtracts and a final right shift, using AxB = ((A+B)^2-A^2 - B^2) / 2 . These are vastly quicker than traditional shift and add.<br>We found this algorithm in the Z80 port of the Elite space flight sim game written by Ricardo Pinto et al in 1985, which had 3d wireframe graphics.<br><br>The 8086 hardware integer multiply instruction was actually present on the core processor without an 87, but was actually slower than some of these software algorithms.
68
@Pihlalorjoone · 1 month ago
My very first routine I wrote for the 6502 was a 16x16 bit multiplication. I loved it when I got it to work. And it was soo fast!
69
@MultiPetercool · 1 month ago
I started on 6502. I love it because it is the ultimate learning experience for a programmer. <br><br>Compilers are great, but hand assembling instructions and poking them into RAM creates an appreciation for exactly how hardware works. <br><br>A good programmer needs to understand the limitations of the hardware.
12
@carlosanvito · 1 month ago
I lived through that period and specifically added the 8087 math co-pro to the Compaq 8086 machine were were ordering to perform engineering calculations. That's how it was done then. As a coda, when that machine was sent to pasture, I removed the gold-plated 8087 and kept it as a fond memento.
5
@mheermance · 1 month ago (edited)
This was true for most minicomputers and microprocessors into the early 80s. For example the 74LS181 ALU chip lacked a multiply operation and it was used in minicomputers of that era. Loop unrolling can make it faster if you have the RAM. The hardware multiply instruction is slower than others because there's no free lunch and multiplication is intrinsically more expensive than addition.
7
@HarveyIng · 1 month ago
In 1970, we designed a hardware 24-bit multiplier for a signal processor. It is housed on a 3x5 modules using then advanced MSI integrated circuits. We did not use the standard shift and add algorithm but a much faster algorithm that add partial sums. It performed a 24-bit multiply in two 5MHz cycles.
1
@HotspotsSoutheast · 1 month ago
I started programming in 1979 on circuit board computers. I programmed in 6502, 6809 in hexadecimal, no compiler. My favorite CPU was the MC6809 on the Color Computer. It had things none of the other CPUs had. It had two 8-bit accumulators that could be multiplied and the result was 16-bit. It had true relative branching for the entire memory range. It had optimized branching to reduce the number of bytes required to store the distance. I knew every single operation for the 6809 including the ones that were undocumented. I knew what those undocumented operations did and used them in my code. I even rewrote the disk operating system that Microsoft wrote and served a few hundred bytes, enough to add more BASIC commands.
18
@cigmorfil4101 · 4 weeks ago
The algorithm to calculate square roots works extremely well in binary - more so than when calculating by hand in decimal.
@HCherns · 1 month ago
I recall that the CDC 6400, smaller brother to the supercomputer 6600 (what later we would call RISC machines), had no integer multiply op code. But one could convert the two numbers to floating-point, do a floating-point multiply, and turn the product into a normalized integer faster than most 360s could do an integer multiply.
1
@NoOneYouKnow2025-m8c · 1 month ago
My first computer, the Radio Shack Color Computer, had a hardware multiply instruction as standard equipment.
@slvsfr · 1 month ago
My first computer was a Rockwell AIM 65, a one MHz 6502. No assembler, but a sort of neumatic entry. Calculation branches was a thing, A great vehicle for learning machine code and hardware interface.
Up next

The 1-Bit Problem That Nearly Stopped the Computer Revolution
The Part That Changed the World · 21K views

The 128-Bit Myth That Never Came True
The Part That Changed the World · 9.9K views

The Millisecond Error That Cost Intel $475 Million
American Forgotten Empires · 57K views

The 16-Bit Decision That Became a 64-Bit Problem
The Part That Changed the World · 5.5K views

Is This The Most Important Chip In History?
Part That Changed American History · 179K views

The 32-Bit Revolution That Changed Everything
The Part That Changed the World · 33K views

Zilog Built the Legendary Z80—Why Didn’t It Become the Next Intel?
Tech Origins · 4.4K views

The 64-Bit Gamble That Paid Off
The Part That Changed the World · 6K views

What Happened to ARM? Britain’s Chip Empire That Conquered the World — Then Got Sold
Tech Uncovered · 33K views

What Happened to Cyrix Processors? | Nostalgia Nerd
Nostalgia Nerd · 2.4M views

The 4-Bit Limit That Forced Computers to Evolve
The Part That Changed the World · 8.6K views

The Speed of Light Was NEVER About Light. Here's Why!
Animated Physics and Animated Engineering · 557K views

Intel's abandoned Pentium 5 project...bought on eBay! (with info from Intel engineer)
Fully Buffered · 414K views

The Tiny Chip That Solved a $5 Billion Problem
The Chip That Changed the World · 631 views

What Happened to MS-DOS? The Operating System That Put Microsoft on Millions of PCs
America’s Lost Technology and 2 more · 92K views

Turbo Pascal to Delphi. The Greatest IDE Story Ever Told
THE NET JOURNAL · 66K views

This Forgotten 1980s Computer Was Better Than Commodore... Why Did It FAIL
Tech Of History · 38K views

14 Useless Old Tech Products That FADED Into History
Tech X Docs and Tech Of History · 297K views

Why the World Couldn't Switch to 64 Bits Overnight
The Part That Changed the World · 17K views

The 8-Bit Problem That Nearly Stopped the PC Revolution
The Part That Changed the World · 32K views

The Rise and Fall of 3dfx, the Graphics Pioneer That Created the GPU Revolution, Then Lost to NVIDIA
Tech District · 103K views

NeXT Computer: The Billion-Dollar Mistake That Wasn't
The Digital Human · 66K views

20 Ways Old-School Crews Dealt With a Lazy Worker That Would Never Be Allowed Today
The Working Man's Code · 46K views

What Happened to Tektronix? Why the Screen That Remembered Disappeared
Debris Field · 1.1K views

What Happened to RISC OS? The British Operating System That Refused to Die
Fallen Tech · 15K views

This Graphics Card Was So Good They Abandoned It
Part That Changed American History · 18K views