Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

25th Anniversary of the Sinclair ZX Spectrum

Posted by CmdrTaco on Mon Apr 23, 2007 07:43 AM
from the never-even-seen-one dept.
Alioth writes "Twenty five years ago today, Sinclair Research launched Britain's most popular home computer of the 1980s — the Sinclair ZX Spectrum. Costing about one third of the price of its rivals such as the Commodore 64 while having a faster CPU and a better BASIC interpreter, the machine sold well in many guises throughout the 1980s and had more than a staggering 9,000 software titles. The machine may well have done well in the US too, had Timex — the company building the machine under license in the US — not already been in financial trouble and about to fold. The machine was also extremely successful in Russia, although not for Sinclair Research — because the Russians made dozens of different clones of the machine, and did so right into the mid 1990s. The machine still has a healthy retro scene, including the development of new commercial software by Cronosoft, and new hardware such as the DivIDE, which allows a standard PC hard disc or compact flash card to be connected to the machine."
+ -
story
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by BluhDeBluh (805090) on Monday April 23 2007, @07:45AM (#18839013)
    The Speccy was better than the C64. Obviously.
    • It sure made a better doorstop.
      • only for the appliance operators. Those of us that liked hacking loved it as it was a cheap computer for interfacing. I remember getting my first one imported to the USA by a penpal I sent cast to. I was up and running external projects with it far faster than the C64. Only the TRS80 CoCo was easier to interface and hack.

        My absolute favorite though was the Kim-I. ran off of battery power easily and made the best robotics platform.

      • Re: (Score:3, Funny)

        I'd have said the Speccy was too small and light to make a decent doorstop. You'd be much better off with the C64 for that. Mind you, a PET would do the job even better.
        • by Admiral Ag (829695) on Monday April 23 2007, @08:16AM (#18839231)
          Me too. Seeing this thread made me feel really happy and pretty old at the same time.

          A 48K Spectrum was my second computer after a ZX81. I don't think I ever got so much pleasure out of any other possession I had as a child (and I didn't even have Sam Fox Strip Poker [props to those who actually remember her, and double to those who remember the game]).

          The Spectrum just went to show how limited hardware resources would force game developers to write creative, original and addictive games. Knight Lore, RedHawk, Manic Miner, Heavy on the Magick, Spellbound, Knight Tyme, Skooldaze, Sweevo's World and above all Lords of Midnight and Doomdark's Revenge were among the best games I have played on any platform. Shame on game developers for the formulaic crap they spew these days.

          Does anyone else remember CRASH magazine? Whatever happened to those guys? It was almost worth being a spectrum owner just for that mag. Best and funniest game reviews ever, and Oliver Frey's covers were fantastic. For years I wanted to meet a girl like the one on this cover he did.

          ftp://ftp.worldofspectrum.org/pub/sinclair/magazin es/Crash/Issue18/CRCover18.jpg [worldofspectrum.org]
    • Re: (Score:3, Informative)

      Obviously. God, I wish I hadn't sqandered all my mod points on tedious factual argument elsewhere.

      Specifically, Jetpac, Knight Lore, 3D Deathchase and Quazatron along with better versions of Elite, Head Over Heels, Spindizzy and R-Type mean C64 LOSES.
      • by Zaiff Urgulbunger (591514) on Monday April 23 2007, @08:09AM (#18839181)
        ...although it should be noted that Elite was better on the BBC Model-B; especially if you had analogue joysticks.
      • Specifically, Jetpac, Knight Lore, 3D Deathchase and Quazatron along with better versions of Elite, Head Over Heels, Spindizzy and R-Type mean C64 LOSES.

        What you should do is set your love for the little rubber-keyed monster to music...

        Oh wait, it's happened already!

        Hey Hey 16K [b3ta.com] - which might explain some of the peculiar British affection for these machines...
      • Speccy V C64 fanboim was SO much better than Windows V Apple fanboism.
        Also remember that many of the people in those crowds "graduated" to being Amiga fanboys. (I also remember that there was a third group of fanboys, the BBC Micro crowd. They were regarded as being strange anoraks with far more money than sense, and a tendency to indulge in train-spotting when using a virtual train simulator...)
        • Don't forget the Amstrad CPC fanboys ;)
        • Re: (Score:3, Interesting)

          At University, I connected my Speccy to the student union TV station's BBC model B (used as a caption generator) via an RS232 lead. I then wrote a rather nifty program that used the Sinclair + Microdrives as a file server for the BBC (which only had a cassette interface installed). Ah, happy days.
      • by Dogtanian (588974) on Monday April 23 2007, @09:14AM (#18839795) Homepage
        Huh? The C64's MS BASIC implementation was crude and archaic; it originated on the PET. That lacked support for the most simple facilities; you had to use POKEs to get them. The Spectrum BASIC was not brilliant, but it was better than that.

        I think that your problem with Spectrum programming is due to Sinclair's "keyword" system. This first appeared on the ZX80 [wikipedia.org]. A single touch of a ZX80 key gave you a whole BASIC keyword (e.g. PRINT, GOTO). This was fast and simple. Symbols were accessed with SHIFT, and you could still type single letters when it was required.

        A similar system was used on the ZX81 [wikipedia.org] , but because it was more powerful, there were more keywords to squeeze onto the keyboard. Thus, some keywords required the user to type SHIFT+NEWLINE *then* hit the key.

        Sinclair retained the "keyword" system for the ZX Spectrum. Unfortunately, this was *much* more complicated, and there were lots of keywords to fit in. This made the system complicated. Even at its release, the Spectrum was criticised for this. From "Your Computer" magazine:-

        Sinclair invented the "one-touch key" system for the ZX-80, which ensured that the computer knew that the first key pressed after a line number, or after the word Then, would produce a keyword, such as Let, Print, Poke or Goto. This meant that programming was fast and positive. The ZX-81 demanded a sequence of key presses - such as Shift, then Function, then a key - to get the results you wanted. Sinclair is obviously wedded to the one-touch entry system, but it is really not suited to the Spectrum. The sequence of key presses required for Ink and Atn, for example, requires the same number of key presses as would be needed to type the word in directly. [..] The one-touch entry system, retained from the ZX-81, is not suitable for the Spectrum and leads to complicated multi-shift operations when keying some functions. It should have been discarded.
        I also found the Spectrum's keyword system too complicated. I remember having an argument in the school playground where a Spectrum owner said that he could type "RANDOMIZE" in less key presses than my machine.

        Of course, at that time, I didn't realise that many BASIC keywords on my Atari 800XL could be abbreviated; for example "PRINT" could be "?", "LIST" could be "L.", and so on. Sinclair should have done that on the Spectrum instead.

        Incidentally, when the enhanced 128K Spectrum was released, the new BASIC abandoned the keyword system.
  • by Bananatree3 (872975) * on Monday April 23 2007, @07:53AM (#18839061)
    All of us math students with Ti-89/92 partial with the ZX can emulate it right on the calculator [ticalc.org]. No more waiting to be at home to play our favorite ZX programs. (mind you the screen may be small, but it's still better than nothing!)
  • by aurelian (551052) on Monday April 23 2007, @07:53AM (#18839063)
    I learnt to program on my Spectrum - and a lot more besides. It wasn't just a gaming console, and it's significance for the industry was much wider also.
    • indeed. If it wasn't for the spectrum, or more notably, the ZX81, I wouldnt have an interest in programming at all, and right now, I'd be working for someone else doing a really tedious job.
      Hurrah for sinclair!
    • Re: (Score:3, Interesting)

      I learned to write machine code on the Speccy. This was because the manual came with a listing of all the X80 instruction set, and a printout of a disassembler in a magazine showed me how to put it together. Once you've written machine code (not assembler, honest direct machine code) for a while, you learn to really appreciate what a pointer is and high-level programming languages like C hold no great terrors. (Curiously, it took me a long time before I thought of writing an assembler...)

      The Speccy was also
  • Z80s all around us (Score:4, Interesting)

    by Anonymous Coward on Monday April 23 2007, @07:55AM (#18839077)
    A friend who did ASM on these chips said that the Z80 processors and variations there of is still (or at least until recently) the most common microprocessor in the world.

    Apparently they are common in dishwashers, washing machines and other programmable appliances. (Can your dishwasher run Linux?)

    http://en.wikipedia.org/wiki/Z80 [wikipedia.org]
    • Re: (Score:3, Informative)

      The "classic" Z80 (as used in the Spectrum) is still made and can be bought from most electronics supplies firms (only in CMOS versions these days, but the CMOS version is a drop-in replacement for the old NMOS version). Zilog also make several advanced variants designed for microcontrollers, including one with a built in Ethernet MAC (the eZ80). They are cheap and easy to use, and are popular because of this.
  • by fruey (563914) on Monday April 23 2007, @07:55AM (#18839079) Homepage Journal

    I started with a Sinclair ZX81, 1Kb of RAM expanded to 16Kb with a "RAM pack" that had an edge connector to the main PCB inside. It got hot (as did the power supply) and was often unstable. You could suddenly lose everything you were working on because the system just froze.

    Along came the ZX Spectrum, 48Kb (and later 128Kb) with 8 colours (the ZX81 was black & white), sprites (the ZX81 was limited to the built in character set which included blocks & things until someone worked out how to hack that) and rubber keys (the ZX81 had touch sensitive membrane things).

    It was a revolution, at my school we swapped tapes which didn't always load, had multiface cartridges to enter POKEs (changing a value at a particular memory address) for cheats and in order to create backups... and a big magazine scene.

    I even ran an emulator on my PC to play one game in particular: the game that everyone tried to beat, and still fiendishly hard (and created by a mysterious genius who "disappeared", Matthew Smith [emuunlim.com]) : Manic Miner [xmixdrix.com] (link to a Windows version).

    Those were the days [caperet.com]. The UK 8 bit scene was dominated by this machine.

    • Along came the ZX Spectrum, 48Kb (and later 128Kb)
      For a short time, the base model of Speccy was a 16kB model, which was still large enough to be interesting. I know, because I had one (you always remember your first computer). Later upgraded to a 48k model, which I've still got somewhere in a box, and which still worked when I last tested it (OK, maybe 4-5 years ago now.) Take that, bit rot!
        • Re: (Score:3, Informative)

          Yes now you mention it, you're right. But I still thought of them as sprites, I used to think of "sprite" clashing. What's the difference, in the end? Character placeholders are "virtual" 8x8 sprites, if you mess around in your code anyway, no?

          I think they mean hardware sprite support. "Sprites" on the Spectrum were all generated by "manual" software manipulation of pixels on the screen. The C64 and Atari 400/800/XL/XE included hardware support for sprites. For example, on the Atari 800, you could superimpose differently-coloured PMGs (hardware sprites) onto a monochromatic background; actually, PMGs were the height of the screen, so by changing their position on different scan lines, you could generate multiple sprites from one hardware PMG and

  • Thank you Sir Clive (Score:5, Interesting)

    by LordSnooty (853791) on Monday April 23 2007, @08:03AM (#18839143)
    Here's me and a million other Brits aged 25-35 saying 'thank you' for the Spectrum. If it wasn't for this little rubber wonder I doubt I'd be sat at this desk today, working in IT as a career. I'll be botting up the emulator" [geocities.com] tonight to celebrate!

    It's also worth noting Amstrad's healthy attitude to the retro scene (they bought Sinclair Research in 1986, and many of those million Brits will think of Spectra every time they watch The Apprentice...). Anyway, the Spectrum ROM was cracked & emulated before permission was sought. When someone decided to approach Amstrad to seek permission, one Cliff Wilson [worldofspectrum.org] stepped forward with a simple reply: "Yes, do what you like with the Spectrum ROM, just don't charge money for it and don't remove our copyright message." Such an open attitude towards the scene in 1999 means that it's still thriving today.
  • Hey Hey 16k [b3ta.com]
  • by GaryPatterson (852699) on Monday April 23 2007, @08:15AM (#18839229)
    It was the first computer in our household, and in many ways by far the most significant.

    I remember learning BASIC and assembly (Z80), playing Elite all through one night, playing games and learning lots of stuff.

    And that little silver-paper thermal printer!

    I've still got the 1981 ZX-Spectrum 48K in a box somewhere, with tapes of many games and that printer (and some spare 'paper'). The keyboard membrane has pretty much had it, making the computer almost useless, but one day I'll get a replacement, just for the nostalgia.
    • Re: (Score:3, Interesting)

      Rwap services sells brand new (made in 2007) keyboard membranes for Spectrums for about 8 quid.

      http://www.rwapservices.co.uk/ [rwapservices.co.uk]

      Also rubber keyboard mats if yours has worn out.
      I still frequently use my Spectrum (well, ahem, one of my FOUR Spectrums - a rubber keyed 48K, a Spectrum+, a toast rack 128, and a bare board I use for testing hardware) because they are still a lot of fun. These days, you can download most of the software from World of Spectrum. On a rainy day, it's good fun to pull out the Speccy, dow
  • ZX Spectrum was meant to be an aid to the young programmer, not the gamer. But the "market" was made by gamers.
    Sr Clive also gifted us with the Sinclair QL [wikipedia.org], another product the market largely ignored despite its potentials.
    The Acorn Archimedes [wikipedia.org] was meant to be a powerful innovative PC. But the "market" was aimed to IBM PCs and to Amigas
    That was the history: the market can esily ignore techinical advances against fancy worse products!
    • Re: (Score:3, Interesting)

      Sr Clive also gifted us with the Sinclair QL, another product the market largely ignored despite its potentials.

      From what I've heard, the problem with the QL was that it was marketed to businesses, not the enthusiast market. I've also read that the QL was quite flakey when it launched (i.e. lots of bugs) and that the Microdrives were unproven; much as I hate to say it, I would not have entrusted my business to such a machine, even if it was technologically brilliant.

      The Acorn Archimedes was meant to be a powerful innovative PC. But the "market" was aimed to IBM PCs and to Amigas

      The Amiga was a fantastic and cutting-edge machine when it came out. Don't compare it against the PC which (even at its launch) was conservative and

  • by rapiddescent (572442) on Monday April 23 2007, @08:31AM (#18839367) Homepage
    I got my spec
    trum 48k to c
    onnect to the
    internet and
    work with sla
    shdot.

    REM disconnec
    t
  • by Alioth (221270) <no@spam> on Monday April 23 2007, @08:42AM (#18839447) Journal
    I've also made a 25th anniversary hardware project for the Sinclair Spectrum - an add-on board to be used for helping diagnose problems with sick Sinclair Spectrums:

    http://www.alioth.net/Projects/Spectrum-Diag [alioth.net]

    It uses LEDs to display the test progress and status, so even if you can't get a picture out of the Spectrum, you can at least find out if the CPU and memory is working, and a good idea whether the ULA is servicable.
  • by Anonymous Coward on Monday April 23 2007, @08:45AM (#18839469)
    And I blame it all on my using a ZX81's membrane keyboard when puberty hit. Instead of developing sleek, feminine fingertips I have hands that resemble welding gloves.

    Thanks a lot, you bastards. :P
  • by Maury Markowitz (452832) on Monday April 23 2007, @08:51AM (#18839507) Homepage
    "Commodore 64 while having a faster CPU"

    It did not have a faster CPU. It had a CPU running at a higher external bus clock. You'd think that after all these years that people would realize that MHz != performance, but I guess not.

    The 6502 ran on a bus multiplier, meaning it ran faster internally than it did externally. This is true of practically any modern CPU, but was not so common back in the day. In general terms the 1MHz 6502 and 4MHz Z80 ran at the same internal speeds. That said, the 6502 was much more efficient and RISC-like. In practically any benchmark that scales for speed, the 6502 comes out ahead.

    Arguably the fastest, in theory, 8-bit machine was the Atari series. They ran a 2 MHz 6502 (declocked to sync with video), which was twice as fast as any of the other 6502 machines and effectively the same as an 8MHz Z80. But again, these machines always finished at the bottom of the heap in BASIC benchmarks, which again demonstrates the point at the top.

    Maury
    • Re: (Score:3, Interesting)

      The 6502 had fewer registers and fewer instructions - it took more code to do the same thing. A Z80 could do a 16 bit add in 11 cycles - it took the 6502 around 20 cycles to do the same thing. The fastest 6502 instructions took 3 clock cycles to complete, the fastest Z80 instructions took four.

      Machines like the BBC Micro got better performance than the Spectrum not from the 6502, but because they had more hardware support which meant the CPU didn't have to do everything. But a BBC Model B, while undoubtedly
      • Re: (Score:3, Informative)

        A Z80 could do a 16 bit add in 11 cycles - it took the 6502 around 20 cycles to do the same thing. The fastest 6502 instructions took 3 clock cycles to complete, the fastest Z80 instructions took four.

        Many 6502 instructions completed in only 2 cycles, although I believe the decode phase of the instruction was executed in parallel with the register write phase of the previous instruction, so in some circumstances it may have taken 3 cycles to execute the same instruction.

        Re 16 bit add, and assuming one memor
  • Homage post (Score:3, Interesting)

    Not really much to add, but I feel compelled to post in homage of the computer that changed the life of so many people, including my own.

    My very first computer was a ZX Spectrum 48k. I still remember the beautiful banner: "(c) 1982 Sinclair Research, Ltd. Chuckie Egg II was my very first game, and BASIC the very first programming language I tried. The ZX Spectrum and the Timex had an almost monopoly here in Portugal in the '80's, to the extent that I never really saw a C64. The Timex plant in Portugal continued making them after the main branch closed its doors, and exported the machine to several countries (Poland was one of the main markets IIRC).

    To Sir Clive: Hip! Hip! Hurrah!
  • Nostalgia time (Score:3, Interesting)

    by scrm (185355) on Monday April 23 2007, @09:09AM (#18839711) Homepage
    I started with a ZX81 and its 1kb of RAM, little flush keys and built-in BASIC. Moved up (or should I say 'was moved' - I was five years old) - to a ZX Spectrum when that came out. Ahh, the white-knuckle action of Arcadia [wikipedia.org]! The blistering platform mayhem of Horace and the Spiders [worldofspectrum.org] (by Psion no less)! I spent many a late night (sometimes not retiring until 8pm) hammering away at the rubber keys, navigating some hideous pixellated sprite.

    Damn I can still hear the staticky 'eeeeeee-ktsch' of the tape drive now.

    Modern computing seems so flat, routine and devoid of character by comparison. What happened?
  • Memories (Score:3, Interesting)

    by CrazyTalk (662055) on Monday April 23 2007, @09:14AM (#18839799)
    I remember that machine well - a friend of mine actually had one. Without the memory expansion pack, it was pretty much useless. Still, if you you wanted a computer (And who didn't?) you couldn't get any cheaper than that. I remember towards the end, they were literally giving them away for free at our local service station with purchase of an oil change.
  • by gaspyy (514539) on Monday April 23 2007, @09:52AM (#18840249)
    Living in Eastern Europe, we didn't have access to most western hardware/software.
    When I was 7, my father built a 48K Spectrum from scratch using smuggled components (the Z80 processor, the EEPROMs), parts from other computers (the case and keyboard); he made the PCB by himself as well as copying and programming the ROMs. I still remember the hardware debugging sessions.

    Later we managed to make the Interface II (I think that was its name) addon board and get a floppy drive to work. It was an East-German Robotron 5.25" drive; we were using 360Kb Bulgarian floppies (sorry, can't remember the brand).

    It was a wonderful machine and it's the way I got into computers and learn assembler (Zeus ruled). At 12 I was busy cracking the games' copy protection to be able to copy them from tape to disks. Oh, btw, games had to be smuggled in too - one network used airline pilots, some of the few kind of people who could travel outside the country with ease. Don't get me started with books, it was hard even to photocopy one, as access to photocopiers was restricted.
  • by MobileTatsu-NJG (946591) on Monday April 23 2007, @09:59AM (#18840357)
    My dad told me a story about a friend of his that purchased a Sinclair. He was so excited to have a computer. He hooked it up, turned it on, and thought he'd ask it a simple question. "Who was the first president of the United States?" "SYNTAX ERROR" What?! My dad explained to him that he had to write a program to tell the computer how to answer that question. "Well if I have to tell it what I already know, what's the point?"!

    Yeah, he didn't get it. Actually, I imagine he's a lot more into computers these days. Finally got what he wanted, twenty years later.
  • Speccys in the US (Score:3, Informative)

    by itsdapead (734413) on Monday April 23 2007, @12:26PM (#18842471)

    The machine may well have done well in the US too, had Timex -- the company building the machine under license in the US -- wasn't already in financial trouble and about to fold.

    There were 3 big barriers (at the time) to stop British machines taking off in the US:

    1. The TV standard - NTSC has less scan lines than PAL, so while a US computer could easily be tweaked to output frequencies that a PAL TV could cope with, going the other way tended to mean losing a row or two of text or graphics from the screen - which broke any software with the screen size hard-coded in (which, in those days, was most of it).
    2. EM emission standards. At the time, I don't think the UK had got round to regulating this and a Speccy or BBC Micro had no EM shielding and would wipe out any FM radio within earshot, so cases etc. had to be redesigned to accommodate EM shielding.
    3. Price - despite the Pound varying between $1.40 and $2 over the years, there is a long and continuing (*cough* Microsoft *cough*) history of US firms setting UK prices by crossing out the $ sign to a £. In the UK, Spectrum vs. C64 argument tended to be a non-argument because the former was so cheap. This advantage tended to evaporate once the computers hit the US market. Once the price advantage was removed it became kinda obvious that the C64 was better built and had more sophisticated hardware than the Speccy. Likewise, the Apple ][ was fairly unaffordable in the UK and never had much market share - leaving an open niche for the BBC Micro that didn't exist in the US. Sadly, instead of consolidating this niche by producing a BBC with more memory and 80-column text (actually, the first would have enabled the latter) Acorn tried to compete with Sinclair by prodicing a BBC-with-all-the-good-features-removed and lost ground.
    • The Atari 800 was the most advanced machine of the 8-bit generation.
    • by goombah99 (560566) on Monday April 23 2007, @09:19AM (#18839881)
      The 1 Mhz 6502 was significantly faster and had a more advanced instruction set than the 3.5Mhz Z-80.

      The Z-80 was essentially an 8080 with twice as many registers but no significant changes to the instruction set. the Z-80's. (well DMA but it was hard to use). I/O was a separate operation than memory access. And most instructions took 4 clock cycles but some took more and a few took 3.

      The 6502 had a much leaner but more powerful instruction set with some very sophisticated computed branch offset instructions. It had fewer registered but mapped all of the first 256 bytes to behave like registers. (At that time It did not pay a significant speed penalty for accessing main memory over register memory.) All I/O was memory mapped. This allowed a simpler bus structure.

      it ran at 1Mhz but most instructions were 1 cycle so it was faster than the Z-80.

      These design features allowed for the two greatest innovations in modern computing history. Dynamic memory and Graphical displays

      1) Dynamic memory.
      Prior to the pet and apple, nearly all computers used Static memory which was not dense and used lots of power. Many bankrupt companies had tries to use Dynamic memory with the 8080. They all failed because no one successfully mastered the problem of robustly refreshing the memory without severely compromising the machine. The problem was that irregulat 3,4,5,6 cycle instructions set length. one could not predict easily when and how much of the time the memory bus would be in use by the CPU. As a result the refresh controller had to just opportunstically try to refresh the memory. This resulted in complex logic that sometimes failed to get through the whole row-address space in the required time. As a result, the only viable approach was to insert wait states into the process to give the refresh a guarenteed access. This slowed the CPU and also had complex logic. It even messed up timing loops like those used in I/O for baud rates and such.

      The 6502 had a regular heart beat. The second half of the cycle was gaurenteed not to access memory. So the refersh sould be poot on the back side of the cycle. no special logic was needed. No wait states.

      Of course eventually refresh controllers got better and that did allow the intels to work with dynamic memory. But the 6502 got their first.

      2) Graphics.
      Most graphics on the 8080/z-80 used I/O ports. Think CGI graphics. There were of course exceptions. But the reason for the lack of memory mapping was How was the video card supposed to access the main memory. It would have had to use wait states. lots of them. and would have halved the CPU rate.

      Memory mapped graphics were of course natural for 6502. Wozniak went one better. He used that backside clock cycle to access the memory for the video output. Now wait you say, how can he use the backside clock cycle to video access if it's already in use for the refresh? That's the genius part. He used the video access as the refresh. The video was just incrementing over the entire row-addrress space in a very regular cycle. Refresh was assured and no circuits was needed.

      the Dynamic ram and overall lower chip counts, simpler bus logic, video, refresh all meant smaller power supplies too. the expansion cards required less logic to decode the complex bus signals so the expansion cards on the apple were literally 1/4 the size of the ones on the s-100 bus that was standard in the 8080 world.

      • by Alioth (221270) <no@spam> on Monday April 23 2007, @09:42AM (#18840141) Journal
        Two inaccuracies:
        The fastest 6502 instructions were not one cycle, but two cycles.
        The fastest Z80 instructions were four cycles.

        A very good 6502 programmer could write a program for the 1MHz 6502 in Commodore machines run as quickly as a run-of-the-mill Z80 programmer could on the Spectrum.

        While the slowest 6502 cycles instructions were around 7 clock cycles, and the slowest Z80 instructions (the index register instructions) were real dogs, one or two of them taking up to 20 cycles to complete, this was more than made up by register pairing. A Z80 could do a 16 bit add in 11 cycles, where the 6502 would take on the order of 20 (and use more memory).

        There was a lot more to the Z80 than a slight improvement over the 8080 - it had not a few but many more instructions (all the DD and ED prefixes), including the addition of extra registers such as the index registers. The Z80 also had more interrupt modes than the 8080, including the very useful IM 2 which meant you could trivially wrest interrupt control from the ROM program (which simply wouldn't be possible with an 8080 based machine). It not only had the block move instructions (LDIR and LDDR) but also block I/O transfer instructions and block search instructions which helped keep the memory footprint of many programs down.
      • Re: (Score:3, Informative)

        I've never seen a computer that used I/O mapped screen memory on a Z80. Memory mapping was natural for the Z80 too. The Spectrum's framebuffer was memory mapped and started at address 0x4000. Memory mapped I/O was also common on Z80 based machines, but having a 16-bit I/O address space as well meant that you could save valuable memory address space for...well, memory.

        DRAM refresh was also not a problem for the Z80 - the Z80 actually had built in DRAM refresh circuitry - this is one reason it was so popular,
          • Re: (Score:3, Interesting)

            "early all of the video cards were not memory mapped. I know, I used to run a store that sold these."

            While this is true, you obviously don't know _why_ they were built this way, otherwise you wouldn't be spouting tripe about it being due to a limitation in the Z80 (then again, it's hardly surprising that what amounts to a computer salesman is pretending to know far more about technical details that is in fact the case). Remember something called CP/M 2.2? CP/M itself took up 7K from the Z80's 64K maximum ad
    • No, that's accurate. The difference in speed isn't as dramatic as the difference in clock speeds would suggest, because of the C64's 6502's zero page addressing and the Spectrum's contended ram, but the Spectrum's Z80 is definitely a faster CPU. The Basic interpreter is also obviously better, at least in the 128K versions. However, the C64 has hardware sprites and scrolling, which means it doesn't need such a fast CPU for most games, and of course the sound chip is far superior.
      • by SpinyNorman (33776) on Monday April 23 2007, @10:38AM (#18840929)
        I worked for Acorn from '79 to -'82, primarily programming (in assembler) the 6502 based BBC micro (and it's little brother the Electron), and from what I can recall the 6502 was - at same clock speed - faster than the Z80. The Z80's main advantage was being available in higher clock speeds, althogh the 6502 did I think get up to 4MHz in the end

        While the Z80 had more registers, the 6502 had "page 0" addresses that allowed offset-only access to the first 256 bytes of RAM, which in a way made up for it. The 6502 instruction set was very minimal, and in fact was the inspiration for the ARM RISC processor designed by Acorn (originall ARM = Acorn RISC Machine, later re-acronymed as Advanced RISC machine).

        The trick with getting performance out of the 6502 (or any of the early 8 bitters) was to execute as few instructions as possible - things like the BBC Basic and Acorns's ISO Pascal (I was 1/2 of the team that wrote the latter) were written in extremely hand optimized assember. You would never do JSR sub; RET - always JMP sub instead. Never do LD A, 0 (two bytes), always XOR A, A (one byte, same effect) instead. Never JMP addr, when you knew the state of the CPU flags and could do JRZ addr (jump relative on zero flag vs jump absolute) instead.

        These are only a few examples, but it was surprising how much fucntionality you could fit into a tiny space by using efficient code like this. The Acorn ISO Pascal implementation fitted into 2 16KB EPROMS, yet packed in a full ISO compliant Pascal compiler (written in Pascal, and self-compiling to an internal pseudo-code - 16KB), the pseudo-code interpreter, run-time library (floating point, heap, I/O, etc), full screen editor (in 4KB of code) with regular expression search/replace, block move etc, and a command line interpreter.. The pseudo-code interpreter, etc, comprised the other 16KB and were all written in super-tight assembler... and the interpreter had to self-relocate itself out of EPROM into RAM to be able to run the compiler since the two 16K EPROMS (1 = compiler in pseudo-code, 2 = p-code interpreter, etc) occupied the same address space in the BBC micro.

        Computing was generally a hell of a lot more fun back then, partly because it was new but also partly because of the challenge of getting stuff like this to run given the limitied CPU/memory resources. I hate to think how big a modern ISO Pascal implementation with all the extras (interpreter, library, screen editor, etc) would be - maybe a factor of 1000 times bigger (32MB vs 32K) or thereabouts?!

        Those really were the good old days, although it's also exciting what's possible given the speed/memory available today.
        • Re: (Score:3, Interesting)

          Yes, the BBC Micro was definitely the mightiest of the 8 bits - without a doubt. The BASIC interpreter was definitely the best of the bunch (it had a built in assembler, too) and it had great support for hardware add-ons. We had Beebs at school and an Econet network (which IIRC was simply a matter of adding an extra chip to a socket in the machine). A friend and I wrote a MUD for the BBC and Econet, loosely modelled on Shades. It was an ungodly mix of BBC BASIC and 6502 assembly (and it was a surprise it ra