4 ms·
The Zx has a Z80 3.5 MHz where the C64 has a 6510 1.0 MHz. With this difference it would take major limitations in the graphics/sound hw of the Zx to come off w
by karmakaze 7y ago
The Zx has a Z80 3.5 MHz where the C64 has a 6510 1.0 MHz. With this difference it would take major limitations in the graphics/sound hw of the Zx to come off worse.
Edit: I had an Atari 6502 1.79 MHz and I wouldn't say it was clearly superior to the C64 because the C64 had more flexible sprites and sound. What I would say is that the Atari peeps I met were more hacker-like than the C64 folks who were more like users/gamers.
- midnightclubbed 7y agoThe Spectrum had major limitations with the graphics, which I'll get to, but the 'sound' was nothing more than a single io pin on the Z80 wired to a piezo sounder (or the cassette 'line-out'). To make a tone you had to run an assembly program to toggle the io port pin on and off at the correct frequency. When you made a tone in basic your program paused until the tone was done. The graphics were a 256x192 memory mapped 1bit buffer (6144 bytes). There was an additional 768 byte buffer that determined what the on and off color was for each 8x8 square of screen pixels. There were 8 possible colors, the byte used 3 bits to select the on color, 3 bits to select the off color, 1 bit to determine if the colors were 'bright' and 1 bit to determine if the colors would flash (alternate every second). Many games would have a 'play area' that was monochrome to avoid the issues of so called color clash where differently colored sprites overlapped and fought over the color selection. The further problem with the screen (and the major headache as soon as you wanted to do anything performant) was that the buffer was not laid out linearly. The top line of the screen (y=0) was at ram address 0 (byte 16384 in memory, rom space went first) and spanned 32 bytes (256 pixels). The next 32 bytes were y=8 on screen. Then y=16 etc. Once you got to byte 256 you were back at y=1 on the screen. Next 32 bytes was y=9 etc. Line y=2 started at byte 512... If you're paying attention (and if you are just imagine what the code to blit sprites looked like) we've only covered the top third of the screen. At byte 2048 you get into the second third of the screen (y=64) and the pattern repeats. I loved the Spectrum (had the 48k and +2, with MGT +D and Swift Disk disk interfaces) but damn that screen layout!
- karmakaze 7y agoThat's very interesting and unfortunate. The Atari had a brilliant 'display list' method where you defined the screen as a series of raster lines and each raster line could be in a different graphics mode varying from 1-bit monochrome graphics, 2-bit 4-color, 4-bit 16-color and there were scan-line doubling versions of many modes that used the same memory but covered more vertical lines. The character modes similarly defined 8x8 sized blocks that varied in size with each character mode, or 4x8 in 4 color which the character bitmaps being read from modifiable RAM. The display list itself was defined in RAM so you could dynamically change the screen layout, even in sync with the horizontal flyback swapping color definitions between lines. The player-missle 'sprites' were crippled compared to the C64 but worked well enough with hardware collision detection, but was limited to 4 on any scanline as Ms. Pacman would show unwanted flicker of ghosts being alternately rendered.
- regularfry 7y agoFairly late on (maybe 1989? 1990?) I came across a Spectrum music layout and composition app demo which did a fairly respectable score render and had 4-channel sound. I was gobsmacked.
- karmakaze 7y agoThat reminds me of when (around the same time) I discovered Composer 669 that on a i386 running in DOS flat (32-bit mode) could in real-time, mix 8 channels of sampled audio pitch shifted to each note.
- NobodyNada 7y agoYou can't compare directly compare clock rates like that, since the 6502 family takes 2-4x fewer cycles to perform the same operations.
- mrob 7y ago> major limitations in the graphics/sound hw of the Zx That's exactly the case. The C64 had hardware sprites and scrolling, and one of the best sound chips of all time with the SID. The Spectrum had a memory-mapped bitmap display with low resolution color, and a CPU-controlled beeper. And the Spectrum's CPU advantage wasn't as much as the clock speeds suggest, because the 6502 could get more done per cycle, and the Spectrum's CPU had wait states when accessing the 16K block of RAM containing the graphics RAM. I played a lot of Spectrum games as a child, but looking at it objectively, the C64 is a far superior machine. However, both systems were crippled by the single-button joystick standard of the time. The greatest feature of the NES was the B button.
- karmakaze 7y agoI never really thought about the joystick button limitation at the time. The original Atari 800/400 had 4 joystick ports so someone could have used two ports 10-bits of input per player for a 2-player game. Each cardinal direction (NSWE was 1-bit with pairs being closed for diagonals).
- Marazan 7y agoWell if you look at the amazing conversion of Carrier Command on the Spectrum compared to the thing that was called carrier command that was released on the Commodore I don't see how anyone can wi h a straight face say the Commodore was a superior machine. For a certain type of game to Commie could produce faster smoother games, but outside that niche (side scrolling plafomers/horizontal shmups) it barely even got to the start line vs the speccy.
- nwallin 7y agoThe Z80 takes 3-6 clock cycles to execute a single instruction. The 6502 executed one instruction per clock cycle. So a 3.5MHz Z80 gives comparable performance to a 1MHz 6502. The Z80 had more registers than the 6502, which is nice, but the 6502 instruction set included immediate values, which is super helpful. Overall you can't argue about CPU performance without writing non-trivial programs which do the same thing in both Z80 and 6502 assembly and benchmarking them. The architectures are simply too dissimilar.
- Marazan 7y agoFortunately people did do that at the time so we can see the results. And the Spectrum had thousands of sophisticated 3d games running in real time and the C64... Didn't. It had the games it's sprite bitting hardware could support. People didn't even try the sophisticated software that was coming out on the Speccy.
- flohofwoe 7y ago...uhm... what were those "sophisticated 3D games" on the ZX Spectrum? There were a lot of "isometric top-down camera" games with a static non-scrolling background, but those were hardly taxing, as the background was "slowly" rendered upfront and didn't need to update each frame.
- Marazan 7y agoAnd the C64 couldn't even manage them. But then there is wire frame 3d games and the freescape games that ran far faster on the Speccy than the Commodore. Then there is Carrier Command.
- flohofwoe 7y agoIt's a bit pointless to compare the Z80's performance to the 6502's by clock frequency alone because the Z80 did "less work" per clock cycle. For instance the Z80 did one memory access in 3 clock cycles, while the 6502 did a memory access in 1 clock cycle. The fastest Z80 instructions were 4 clock cycles, the fastest 6502 instructions 2. So just comparing by frequency a 1 MHz 6502 would be roughly equivalent to a 2 or 3 MHz Z80. But then you have the completely different instruction sets and design philosophies too. To extract the most performance out of the 6502 you need a completely different approach to programming than on the Z80. And in general, the C64's architecture is a lot more complex then the ZX Spectrums. The C64's architecture was very expensive but optimized for getting a lot of stuff changing on the screen with very few clock ticks. The ZX Spectrum's architecture was much more simple and rigid, but much cheaper to build (even from standard parts, as the many Eastern European ZX Spectrum clones proved). Now, comparing the Amstrad CPC against the C64 would be much more interesting ;)
- djmips 7y agoWow, to this day people are still having clock speed size contests. It's not so simple. The Z80 has more cycles per instruction.