ZCM/PCM-player without use of library

For posting library code and examples.
Post Reply
unartic
Posts: 145
Joined: Sat Oct 28, 2023 3:26 pm

ZCM/PCM-player without use of library

Post by unartic »

Here is a small demonstration on how to play ZCM files of any size, straight from disk. It uses a custom interrupt handler to keep the fifo-buffer filled. It consumes less then 256 bytes in total.

I included the theme of x16wars for demonstration.

Try It Now!

Source
playzcm.asm
(3.85 KiB) Downloaded 99 times
Runnable demo
playzcm.zip
(427.91 KiB) Downloaded 78 times


5/14/2024: updated version in which the disk io is now outside the isr. Thanks to Tony3068 to point this out
Last edited by unartic on Sun May 26, 2024 8:31 am, edited 4 times in total.
Djehuti
Posts: 8
Joined: Thu Mar 14, 2024 5:20 am

Re: ZCM/PCM-player without use of library

Post by Djehuti »

I like your indentation style and I'm going to steal it. ;)
User avatar
ahenry3068
Posts: 1131
Joined: Tue Apr 04, 2023 9:57 pm

Re: ZCM/PCM-player without use of library

Post by ahenry3068 »

Very nice code. I've been working on something very similiar to this. I think I might just steal yours, ;) as I've got about 4 programming projects all going at the same time.

Good work...
Post Reply