2 ms·
That trick wasn't limited to 8-bit. The original Macintosh used a variant of this to generate sound and to adjust the rotation speed of floppy disks. Just past
by Someone 12y ago
That trick wasn't limited to 8-bit. The original Macintosh used a variant of this to generate sound and to adjust the rotation speed of floppy disks. Just past the bitmap for the screen, it had two 740-byte buffers.
It read a single byte from those buffer at the end of each horizontal scan line, and fed it into the sound system/as a PWM signal for the motor of the floppy drive (http://en.m.wikipedia.org/wiki/Macintosh_128K/512K_technical_details#Sound http://en.m.wikipedia.org/wiki/Macintosh_128K/512K_technical.... I think the section on the floppy drive is incorrect; the original Mac didn't have a IWM; it was all done in software)
If you wanted to generate continuous, non-repetitive sound, you had to fill the sound buffer with new values at the end of each vertical blank interrupt.
Quite a bit easier than on the 2600, as the update frequency is only 60 Hz and the CPU a lot faster, but the same principle, and still quite a challenge at the time, if you wanted to do something in the screen at the same time.