WIP
You are here:

QuickMusic::HandleVBI

Call this in your custom VBI every time to have the music update as necessary. This can be called even if there isn't a piece of music playing or one in memory, since QuickMusic handles that as necessary. This will return to the caller with an RTS.

 

This directly ties to the handler and isn't a vector like the others so it is as fast as possible.

 

This should only be called while handling a VBI interrupt.

 

Incoming

None

Outgoing

All registers are lost.

 

Example

; A very simple sample VBI handler VBIHandler: ; Set up initial colors CopyValue GTIA_W::COLPF0, PF0Color CopyValue GTIA_W::COLPF1, PF1Color CopyValue GTIA_W::COLPF2, PF2Color CopyValue GTIA_W::COLBK, BAKColor ; Call the music VBI handler JSR QuickMusic::HandleVBI ; Full RTI (not for use in QuickOS) PLA TAY PLA TAX PLA RTI