by krallja · 4y ago · 0 comments
Also, the Apple II CPU didn’t spend 70% of its time drawing the screen! It had separate video hardware that transparently interleaved with the unused back half of the CPU clock cycle. The ZX81 was tricked into “executing” sequential screen-memory addresses in a very tight loop by falsifying its data bus with a NOP instruction. Fancier computers would use dedicated DMA hardware. Not Sinclair!
For one data point in performance, theultimatebenchmark.org has some Forth benchmarks that apparently show a 4GHz Z80 beating the 6502 by 2X (best scores for each: mc-CP/M Z80 4Mhz / FIG-Forth 1.1 / Fib2 = 1m19s, Apple II 1Mhz / Apple GraForth / Fib2 = 2m19s).
Disclaimer: biased, veteran Z80 / ZX Spectrum programmer ;)
The IX/IY registers are heavyweight but one needs to remember the "best-practices" of that era and architecture. In well optimized Z80 code, the IX/IY registers are often used for critical "global variables" that you can keep all the time in registers across many subroutine calls (think "segment registers": base pointers for important tables or buffers that are not fixed addresses through the whole program). Their performance beats needing frequent indirect load/store from pointers stored in memory via other registers that often need to be preserved/restored.
You can also use some relatively low-latency instructions that involve IX/IY, in particular PUSH/POP were often used in optimized buffer-copy routines: you burn all registers to fetch up to 20 bytes of contiguous data with POPs, then you patch the SP register and issue PUSHs in inverse order to store those 20 bytes in another location; loop if needed for >20 bytes, even with loop overhead this is faster than LDIR/LDDR. Games used that trick all the time for block copies like sprite bitblt or double-buffer animation.
I'll be more convinced by realistic benchmarks, and yes the Fib2 that I quoted before is not impressive even for the standards of CPU microbenchmarks, but maybe someone would know some real-world code that had good ports to both CPUs and could give a better verdict. Unfortunately games are never good choices, the 8-bit systems had radically different architectures for essential features like video and audio so "ports" were often full rewrites even at a high level like rendering strategies... there might be exceptions, like the AI component of a chess game.
I think Timex's main projection was that the Sinclair machines would be affordable over the long term. But I guess in the USA, the competition became cheaper much faster than they expected.
Over in the UK, as well as more expensive imported Commodore machines, the native competition included the very expensive BBC Model B and its cousin the Acorn Electron, the beloved and excellent Dragon 32, the quite inexpensive Jupiter Ace (think ZX81/Spectrum but running FORTH natively!), and Tangerine's Oric-1, which was adorable, and as with the Amstrad CPC sold well in France, expanding its market size a bit.
The Spectrum 48K did well against them on price-performance, though the Oric-1 was often cheaper and is arguably the better device.
In the USA, much larger economies of scale meant that the C64 was more affordable, and for cheaper machines the Spectrum was up against the VIC-20 and Atari 400, and even Mattel wanted a chunk of the low-end in that same period of time with the Aquarius (which is similarly simple Z80 stuff).
The competition became cheaper much faster than anyone expected.
The Timex Sinclair 1000's introduction in the US in 1982 caused the US home computer industry to believe that they had to enter the sub-$100 market. Tandy introduced the MC-10 (<https://en.wikipedia.org/wiki/TRS-80_MC-10>) as a cut-down version of its Color Computer, and TI designed the 99/2 as a cut-down version of its 99/4A. Two unexpected things happened:
* Americans, more wealthy than Britons or Europeans, viewed $99 computers as toys.
* Commodore's Jack Tramiel began a massive price war that drove the retail price of existing, more capable home computers down to $99. In 1983 the Commodore VIC-20 and TI 99/4A reached the $99 price point. TI thus never introduced the 99/2 despite having it ready for production.
The VIC-20 and 99/4A received substantial third-party support; the Timex Sinclair 1000 and MC-10 did not, and quickly disappeared from the market.
The Jupiter Ace is one of the great "someone really made that a product?" things, lost to history. It had a flimsy shell and bad keys from what I remember reading, but it's amazing it became a product at all.
There's a lot more of this stuff going on again in the microcontroller world; perhaps partly out of reminiscence.
It was a nerd-fantasy product designed by two unusually clever people to scratch their own itch, with no thought to ecosystem, culture, media support, visual design, or product-market fit.
And then it ran into production difficulties. They still managed to sell a few thousand, but it was never going to be a huge success.
One of those unfortunate situations where high IQ - clearly available - didn't correlate with business sense.