Wheee!
I added a handful of counters, so now the Z80 thingy has a sense of time. So I put together a tone generator and coded up some tunes.
Here's what's on the breadboard:
The MK48Z02 is only 2kB, so I can't put much on it... still, a good minute or two running time.
If I had the bytes, the LED display would be animated, too (since the tone generator runs "in the background"). This program is stripped down to maximize notespace, so it doesn't blink or anything. So that's why I didn't record a video, it's not worth it. The audio part is still worth listening to, however...
(Unfortunately I couldn't quite fit the entire piece in, by just a few bytes, so it cuts off rather abruptly at the end...)
Incidentially, I recorded this by running the square wave through my sound system, fairly loud, and recording it using my computer mic, placed very near the speaker. It doesn't look like a squarewave anymore, of course. The room adds a bit of reverb. I'd call this my first attempt at recording something to at least moderate quality. Decide for yourself!
Tim