Login
Back to forumSee the full topicGo to last reply

Posted By

Csabo
on 2017-01-17
15:31:21
 Re: BASIC Bitmap loading (KERNAL Subroutine) in the Encyclopedia

George, you asked about music playing from IRQ in BASIC. This is pretty simple. The Super-Writer has over 50 examples of it, classic tunes ripped.

Or you could grab any of my tunes (source is released for everything, and they are listed on my page under HVTC), and write a simple IRQ driver for it. I just tried it and works nice, let me know if you want the actual working source (to be honest I don't like anyone posting big chunks of code on the forum, so I'd rather not do it). This is all you need though: an INIT, which calls the music's initialization (a single JSR) and sets up a routine $0314/$0315. In that routine, all you need is: acknowledge the IRQ (ASL $FF09), call the music player (a single JSR) and jump to the default BASIC IRQ (JMP $CE0E).

Otherwise, to get back on topic: good job with the KB entry. I fixed a few minor things. I hope more people will edit stuff!



Back to top


Copyright © Plus/4 World Team, 2001-2024