back to article ZX Spectrum: Q&A with some of the folks who worked on legendary PC

The Register took a road trip last weekend to celebrate the ZX Spectrum's 40th birthday, and visited The National Museum of Computing in Bletchley Park and the Centre for Computing History in Cambridge in search of the origins (and clones) of the rubber-keyed marvel. Present at The National Museum of Computing (TNMOC) were …

  1. Warm Braw

    Those guys look really old, I thought...

    ... and then caught a glimpse of the mirror.

  2. stiine Silver badge

    Outrun for the win!

    I spent way too many lunch hours playing that game.

    1. Phones Sheridan Silver badge

      Re: Outrun for the win!

      That and Afterburner, both with the supplied music tape pumping out my cheap-ass clone Schneider ghetto blaster. I was a bit disappointed with Space Harrier, not that they didn't manage to squeeze it into 48K, but that they got the up/down controls back to front compared to the arcade machine. I had to crack open my joystick and make a modification using spade terminals to switch it round! No music came with that game tho.

      1. AMBxx Silver badge

        Re: Outrun for the win!

        Meteor Storm for me. Just for the reminder of the attempt at speech with a Speccie.

        1. David Gosnell

          Re: Outrun for the win!

          Peaches and cream! Peaches and cream!

          1. Tom Chiverton 1 Silver badge

            Re: Outrun for the win!

            Ice cream! Ice cream!

            Sorry, Speedball 2 was a bit later

  3. DaemonProcess

    Thanks

    Bless these guys for my 33 year career in IT, I would probably have been digging holes in roads otherwise.

    1. wayneinuk

      Re: Thanks

      Agreed :-) And those wholes in roads probably not for FTTC/FTTP or any other Internet technology!

    2. werdsmith Silver badge

      Re: Thanks

      Count me in that group. I was absolutely hopeless and going nowhere until the home micro happened.

    3. Plest Silver badge

      Re: Thanks

      I'd thank our parents too! My Dad knew in 1982 that if I wanted to an engineer like him then water, boiler rooms and sewage would not be my workshop but an office with a screen and keyboard. Code are my spanners of choice. My Dad still plays with computers but if hadn't push me, I'd not be in such a great position in life.

  4. Anonymous Coward
    Anonymous Coward

    Screen memory layout

    Why was that so whacky?

    1. Boris the Cockroach Silver badge

      Re: Screen memory layout

      Memory limitations

      They wanted the 16K version of the spectrum to have 8K of memory to use .. which was bigger than a BBC model A? B? running the same resolution....

      But it was weird , wacky... and forced you to get creative in programming the dang thing

      which helped this ZX spectrum owner get creative in how he programs.. which leads nicely into my career forcing robots and CNCs into doing weird and creative things..

      1. Uncle Slacky Silver badge

        Re: Screen memory layout

        I can understand the two-colour-per-character-block limitation, but why was the pixel "map" divided into three blocks instead of one simple top-to-bottom (or vice versa) block?

        1. Anonymous Coward
          Anonymous Coward

          Re: Screen memory layout

          Yes, that's what I meant, it looks like it's something to do with the character generation, but that doesn't quite make sense either.

          1. AddieM

            Re: Screen memory layout

            It's convenient for the character generation that the bottom five bits of the low order byte represent the screen from left-to-right, and the bottom three bits of the high-order byte represent the 'three chunks' from top to bottom. It means that when you're copying character glyphs that you can set the low-order byte to the 'top' of the character, and iterate when drawing it downwards by incrementing the high byte.

            But the missing bit of the puzzle here is getting the image to screen; there's no double-buffering or anything, the ULA just locks the memory that it need to draw the next scanline and reads it simultaneously with the CRT output. The Z80 CPU in the Speccy isn't fast enough to read/write the screen memory as quickly as is needed for video output, so it needs the custom hardware. Memory access to the screen display area is contended; it will take a couple more cycles to change values that the ULA is reading, since it absolutely needs priority. (If you're cunning, you can measure this behaviour to optimise your screen drawing code and minimise flicker.) And it happens that this weird memory layout is just right for outputting PAL video.

            On the other hand, since the only screen output is direct writes to the framebuffer, then all Spectrum games have 60 Hz output - no console-style 'cinematic 30 fps' :-)

        2. William Towle
          Boffin

          Re: Screen memory layout

          The Speccy screen layout doesn't so much divide into three blocks, as into 2K regions split into 8 by 32 "cells" [of eight 8x1 pixel groups each] within which useful relationships between addresses of screen-adjacent bytes as well as the corresponding sections of the attribute map are present.

          Intuitively, within any row the eight pixel group to the immediate left or right of any character cell has an address one byte along in RAM but as a consequence of the row ordering within the 2K blocks the eight-pixel group below is also 256 bytes away. According to direction, each sideways step is thus achievable with an increment/decrement of the most or least significant byte of the address, and is consequently a single byte instruction in the corresponding machine code.

          A technical explanation of how this arrangement correlates to ULA design is at http://www.breakintoprogram.co.uk/computers/zx-spectrum/screen-memory-layout

          1. Dan 55 Silver badge

            Re: Screen memory layout

            This description by Chris Smith (author of The ZX Spectrum ULA) might also help.

            Of course, the book helps more. :)

    2. Gordon JC Pearce

      Re: Screen memory layout

      It was that wacky for the same reason it was laid out similarly on the Apple II - the video hardware could also double as the DRAM refresh. Each "strip" was 256 bytes long, and prodded in turn by the scan generator to keep the 4116 DRAMs that formed the screen memory charged up.

      If they had done it "linearly" then it would have taken too long to scan everything and corrupted the memory.

    3. juice

      Re: Screen memory layout

      > Why was that so whacky?

      The short and simple answer is that it saved memory.

      At 256*192, a simple black and white display uses 6kb of memory. Conversely, a display using 8 bits of colour per pixel would use 48kb. Which wouldn't have left any memory to do anything else, unless Sinclair was willing to bump the RAM up to 64kb[*]!

      Conversely, the colour overlay only used 768 bytes, since it only needs one byte per 8*8 block on screen.

      And that meant that even the 16k Spectrum still had about 9kb of RAM free, which was enough to do something useful. Or to play games like Jetpac ;)

      It's also worth noting that the ZX Spectrum wasn't the only computer to use this sort of technique, though most of it's rivals did offer other display modes.

      https://en.wikipedia.org/wiki/Attribute_clash

      Still, you gets what you pays for, and the ZX Spectrum was significantly cheaper than it's more flexible competition...

      [*] 8 bit CPUs can generally only address up to 64kb of memory, which can be a mix of RAM and ROM. The basic Spectrum models had a 16kb ROM and then either 16kb or 48kb of memory. Conversely (and to somewhat simplify), the Commodore 64 had a 16kb ROM and 64kb of RAM, and the programmer could choose to either use the ROM + 48kb of RAM, or replace it with their own code and use the entire 64kb of RAM!

  5. J.G.Harston Silver badge

    Legendary PC? The Spectrum's not a PC.

    1. TheLurker

      It's not an IBM-PC, but it is *very* definitely a PC (personal computer) as were all the other machines (Ace, Beeb etc) mentioned in the article.

      1. sorry, what?

        PC? Nah

        As even the body of the article mentions, it was a Home Computer. PC was a term reserved for the IBM monster at the time, so I can only agree with the OP here.

        1. Dan 55 Silver badge

          Re: PC? Nah

          I think at the beginning of the 80s the terms "home computer", "personal computer", and "personal home computer" were pretty much used interchangeably and were around before the IBM PC was released in August 1981.

          Exhibit A

          Then the IBM PC become the de facto standard and other PCs weren't any more because they weren't IBM.

        2. Michael Strorm Silver badge

          Re: PC? Nah

          > PC was a term reserved for the IBM monster at the time

          No, it wasn't. The terms "personal computer" and "PC" predate the IBM PC by several years and originally referred to *any* personal computer. (*)

          IBM simply used the pre-existing term to denote *their* take on the personal computer.

          Later on, "PC" became more associated with that specific personal computer- most likely because it was in the name- and a de-facto synonym/abbreviation for "IBM PC compatible". The term *was* used less for other machines after this, most likely to avoid any confusion. But that wasn't the case "at the time" of the IBM PC's launch or for several years afterwards and- strictly speaking- still isn't.

          "Home computer" was a type (i.e. subset) of personal computer generally aimed specifically at the home user- back when that was a distinct market segment with its own formats- and not a different thing altogether. (Similarly, "microcomputer" and its long-obsolete abbreviation "micro" overlapped with both back then).

          (*) For example, the magazine "Personal Computer World" started in 1978- a full three years before the launch of the IBM PC- and continued to cover a wide range of formats until the IBM PC compatibles became dominant anyway.

          1. Warm Braw

            Re: PC? Nah

            I seem to remember writing a review of the 8086 chip for PCW before it even appeared in an IBM PC.

    2. Martin-73 Silver badge

      The bottom of my speccy plus clearly said 'personal computer'. It absolutely WAS a PC

      1. Anonymous Coward
        Anonymous Coward

        Whereas the IBM monstrosity wasn't really. Very few people could buy an IBM one as a personal computer, they were mostly bought by companies for employees to use at work and were therefore business machines.

        1. Is It Me

          It was a personal computer in that it was designed to be used as one per person rather than mainframes with dumb terminals.

    3. David Gosnell

      I'm pretty sure I remember the box of mine specifically using the words.

      1. ChrisC Silver badge

        A quick Google images search for "ZX Spectrum box" confirms your recollection, and a similar search for the boxes of other popular 80's computers reveals much the same for those machines as well.

  6. J.G.Harston Silver badge

    Character-cell based attributes is also how ANSI works.

  7. Danny 2

    The life unplayed

    Folk here keep mentioning Speccie games I've never heard of, so in a pique of nostalgia (a peek?) I read through the Wikipedia list of games. I old had about ten of them - dad wouldn't let me buy them for a year or more, my pals all had different machines, girls, school etc.

    It's common today for computer games to be made into movies but I noticed that happened back then too. The Spectrum games 'The Hobbit' and 'Lord of the Rings' have since inspired movies.

    1. Anonymous Coward
      Anonymous Coward

      Re: The life unplayed

      https://worldofspectrum.org/

      Chances are you can download and play them!

      Then discover that nostalga is not what it used to be...

      1. Dan 55 Silver badge

        Re: The life unplayed

        Try the QAOP browser emulator for your quick fixes of Maziacs or, indeed, The Hobbit.

        1. David 132 Silver badge
          Happy

          Re: The life unplayed

          I misread your comment as QWOP and thought, that's evil, pointing people towards that game...

    2. Terry 6 Silver badge
      Facepalm

      Re: The life unplayed

      A few years back I was in W H Smith and they had a big sales display of copies of the Lord of the Rings paperback. Someone stood near me said, in seriousness to her companion, "Oh look they've made a book to go with the film".

    3. David 132 Silver badge
      Coat

      Re: The life unplayed

      > The Spectrum games 'The Hobbit' and 'Lord of the Rings' have since inspired movies.

      Indeed. And the classic Spectrum program

      10 PRINT "I AM AN OVERPAID UNDERTALENTED WANKER"

      20 GOTO 10

      ...has inspired many, many Hollywood careers too!

  8. paleotronic

    You can read more from the wonderful Richard Altwasser about his work on the ZX Spectrum at https://paleotronic.com/2018/10/01/an-interview-with-zx-spectrum-designer-richard-altwasser/

  9. Spamolot

    Cambridge joystick interface

    Does anyone remember a few hobbyist students in Cambridge selling a kitset joystick interface for the ZX? You could also buy it assembled but it wasn't as cheap or fun as the kitset. It plugged into the ZX backplane and had a standard joystick connector. It was configurable by DIP switches to adjust the joystick for different keys in games.

    1. Dan 55 Silver badge

      Re: Cambridge joystick interface

      Perhaps this one?

      1. Linker3000
        Happy

        Joystick Adapters

        Wow, that's a hefty looking adapter!

        If you just want a simple Kempston-type one, just get wirewrapping!

        https://github.com/linker3000/ZX-Spectrum-ROM-and-Joystick-Board

        Mind you, there's always this:

        https://twitter.com/linker3000/status/1516106194808623106

  10. ske1fr
    Mushroom

    Thanks!

    I owe my recent retirement from the Civil Service after nearly three decades of hacking, data processing and deskside support, to those years faffing about with a 48k Speccy, with Interface 1, two microdrives, a joystick, a full travel keyboard case I forget the name of, a speech synthesiser and a thermal typewriter I had to solder a custom RS232 cable for. Well, that and the earlier analytical training curtesy of Atari, Williams, Nintendo, Konami, Taito, Namco, Stern...

    Icon in memory of Missile Command. I'd have preferred Space Duel...

    1. Vin

      Re: Thanks!

      I had the Currah μSpeech that slot into the rear of my Speccy. Cost about £30 at the time. Had the “benefit” that the Speccy audio was redirected through the tv speaker, with added RF noise!

      I loved my μSpeech. Certain games would support it, too. Buck Rogers being one that I remember.

      It was amazing, at the time, to hear your computer speak!

      1. Martin-73 Silver badge

        Re: Thanks!

        Would you like to play a game?

      2. David 132 Silver badge
        Thumb Up

        Re: Thanks!

        Oh, thanks for reminding me of that. A friend of mine just a few houses up the road from me had the Currah. I was amazed at how clever it seemed.

        Another friend mid-way between us had a BBC B, the rich git. His parents were well overpaid (ISTR Daddy was a veterinarian).

        Suburban Chester in the 1980s was a fun place for a kid!

      3. conscience

        Re: Thanks!

        Ah, my beloved Spectrum. I had the speech unit too, though much later in its life when I bought a bundle to replace a broken computer. I tried using it myself and it sounded very cool, but I didn't have much software that made use of it.

        I also once found a hex machine code magazine type-in that could sample a sound (via the cassette player) and then replay it from RAM. It filled up the entire Spectrum memory with about 6 seconds worth of sound IIRC. I was very impressed at my humble speccy playing sound samples, and it worked fine-ish up to a point. The only downside was the sample replayed a little slower than the original from the cassette tape so I think I was far more impressed than my non-techie friends were!

      4. Anonymous Coward
        Anonymous Coward

        Re: Thanks!

        "The Aardvark licks at you but misses"

  11. ashm

    Takes me back

    I still remember that specific screen from "Head over Heels" as featured in the photo. Teenage me near went daft with frustration trying to figure out that game.

  12. Anonymous Coward
    Anonymous Coward

    Speccy launched thousands of IT careers

    Given how many of us have been outsourced or had our kit moved to the Cloud, whilst the higher ups profit from our skills, then maybe a job digging holes would have been preferable.

    1. John Brown (no body) Silver badge

      Re: Speccy launched thousands of IT careers

      With machinery, especially sideways drilling "trenchless holes", there's not much call for hole diggers these days. They few left have retrained as hole digging machine operators :-)

      On the other hand, as the pot-holes in so many roads demonstrate, there does seem to be a shortage of properly trained hole-filler-inners. That could be a career choice :-)

  13. Anonymous Coward
    Anonymous Coward

    nice article but its bleedy COLOUR not COLOR! ffs

    1. werdsmith Silver badge

      It's equally valid either way.

  14. We're all in it together

    Time flies

    I can't recall ever doing a tape to tape copy.

    I also can't recall the name of the game that had software protection that had an A4 sheet printed in yellow that couldn't be photocopied. Anyone remember that?

  15. anthonyhegedus Silver badge

    I had a dream last night that I met Clive Sinclair and I shook his hand and said thanks for making the Sinclair QL because I actually really enjoyed that computer - the first one I had with a floppy drive.

    1. Zola

      QDOS ahead of its time

      The QL was also my first machine with a floppy (twin 3.5" in my case)! I upgraded to the QL after a Spectrum 48K.

      What many don't appreciate about the QL is that it had a fully pre-emptive multi-tasking operating system with job prioritisation/scheduling, IO channels with redirection (windows, files, pipes), and possibly the most advanced version of (Super)BASIC.

      All in a 48KB ROM.

      Tony Tebby (QDOS) and Jan Jones (SuperBASIC) did an outstanding job designing and fitting all of that into such a small ROM.

      And credit too to Laurence Reeves for squeezing even more functionality (and many bug fixes!) into the same ROM space with his "Minerva" reimplementation of QDOS after Sinclair Research went belly up.

      I learned BCPL, Pascal, C and MC68000 Assembler (not necessarily in that order) on the QL and the latter set me up nicely when asked to programme DEC VAXen in MACRO32 in my first IT job - that was a LOT of fun!

      There were far too many corners cut on the QL hardware which was in truth a bit of a disaster, but the effort that went into QDOS is so often overlooked.

  16. Plest Silver badge
    Thumb Up

    Micro computer manuals taught me how to write good documentation

    Two of my many IT related treasures are a copy of the original ZX Spectrum and BBC Model B manuals, safely stored in the spare room. As the guy said in the article, manuals in those days were real documentation and they shaped the way I still write docs today. I write to my target audience, writing to the lowest common demoninator I know will need to read it and including everything you need to know without having to go away and learn tons. The Amstrad CPC manuals were real works of art, the originals in those binders and the wire-bound ones were just so clear and concise.

    I must get myself Amstrad and Dragon32 manuals off ebay...

  17. dropthepilot
    FAIL

    ZX Spectrum hardware faults

    I worked briefly as a "Service Engineer" for the company that repaired ZX Spectrums that had gone wrong while still under guarantee. Most often the fault was with the power supply - it used to overheat very easily. If not, then most commonly a memory fault in one of the memory chips or a ULA issue. We hated replacing the ULA because of the number of pins that had to be desoldered and then resoldered by hand. The manufacturer didn't put them in sockets in order to save money on the build cost.

    Home computers were a very new thing for most people, and the non-working Spectrums were often accompanied by letters that said "I broke it when I typed 'L' instead of 'P' by mistake". One reason why people were so scared of the new technology was just that - they were afraid something bad would happen if they pressed the "wrong" button. Only typists were used to a keyboard - everyone else was just used to hard-wired buttons that had a single function.

  18. Oh Matron!

    Rochdale...

    There's not many things to be proud of coming from Rochdale, but one of them is that A&F software, makers of Chucky Eggs, was based in said town :-)

  19. Anonymous Coward
    Anonymous Coward

    Visiting CCH

    Never been. It's a five minute cycle ride from my front door.

    You never appreciate what's on your own door-step!

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like