Congratulations, Dex! Impressive demo you had there, and I guess the best "OS" won. (But to be honest, I thought I had a pretty good chance at first. Did I actually forget to include the source!?
)
I was away last week for 5 days sailing around the Gulf Islands in British Columbia (Canada) as part of a school-sponsored trip, so when I got back the voting had JUST finished and so t'was too late to right the wrongs and possibly win me a compo. But on the other hand, I guess the rickroll would've been too obvious if you read through the source beforehand.
Here you guys go:
Attachment:
MusicDemo.asm [5.09 KiB]
Downloaded 136 times
There's actually no real compression involved, though the way I stored the song is I guess... creative? The first four bits of a note would represent the actual tone (an index to a bunch of frequencies) AS WELL as the 16-bit VGA color - 2 of the note AND the position it occupied on the screen (efficient, no?). The last four bits was used in a tick-checking loop to give the note the appropriate length. A 0 would indicate text to print, followed by a number which would help indicate the memory offset to start printing on, and then followed by the text (terminated by another 0). Two 0s would denote the end of the song, causing the entire song to loop again.