PDA

View Full Version : Sound Effects and Music in ML



jeff48356
December 24th, 2007, 06:25 AM
On many games on the Commodore 64, there are complex sound effects and music. How are these written in machine language? Do they take a lot of time to develop? Is there any information on programming sound and music in machine language?

carlsson
December 25th, 2007, 02:52 PM
Most music is run through raster interrupt. Set up IRQ pointer $0314/0315 to your own routine, and it will be run ~60 times per second. Use own counters to determine how often you want to process the music data, and branch to regular IRQ routine once you're finished.

It is the short answer. I could elaborate into a very long answer, but surely there are other resources on the Internet which goes into detail how to write and use a music player.