Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
  You are not logged in - nap
Dancing with the Basic   [2022]

Dancing with the Basic Released by :
MAT64

Release Date :
4 December 2022

Type :
C64 Basic Demo

AKA :
Adventures in 79 tokens and how much I laughed doing them

User rating:awaiting 8 votes (6 left)   See votestatistics

Credits :
Code .... MAT64

Download :

Look for downloads on external sites:
 Pokefinder.org


Production Info
Submitted by MAT64 on 4 December 2022
Well, everything started with the needing of making a rhythm in 79 chars of basic code to partecipate at Transmission 64.
With unconscious enthusiasm I wrote something that sounds:

0s=54272:dA24,9,19,9,15,9,18,33,18,32:fOi=1to5:rEk,v:pOs+k,v:?i,k,v:nE:reS:gO
run

(Paste it on Vice with Alt+Ins)

There was no time to end the word "hard reset" that the line ended.

So, I've realized that I can't write data in the code but found it in the ROM.
As bonus, i can add a fixed offset to the values I read, so I don't need exact values but exact deltas.

Some regexes later...

You can't understand my surprise when the word 'SING' cames out from the regex. It was a part of the Basic Error Message Table, the full word was "MISSING FILE NAME".

So this 3 values subtracted by 77 gives me:
24 - for the volume register
14 - for frequency of a voice 3
19 - for attack/decay of the voice 3

After some attempts, timeconsuming tasks, kicks, shakes and opts I finally got the sound of a musical scale.

0s=54290:fOi=0to4:a=pE(41474+i)-77:pOs+a,9:nE:pOs,32:pOs,33:pOs-3,pE(162):gO
run

Good, it is worse than Fort Apocalypse intro of the '82.

The rest of the story is me coding a program that generates regexes to find register sequences like this:
U[\\s\\S]{0,2}L[\\s\\S]{0,2}T[\\s\\S]{0,2}O[\\s\\S]{0,2}O[\\s\\S]{0,2}P[\\s\\S]{0,2}
And other regexes to fill to those registers like this:
0[\\s\\S][\\s\\S][\\s\\S]\xfd[\\s\\S]\x86[\\s\\S][\\s\\S][\\s\\S][\\s\\S]\x1f

But you can't understand my surprise when it starts writing BEFORE 54272 which is the VIC registers area :)

That's all folks!
MAT64
Search CSDb
Advanced
Navigate
Prev - Random - Next
Detailed Info
· Summaries (1)
· User Comments (1)
· Production Notes (1)
Fun Stuff
· Goofs
· Hidden Parts (1)
· Trivia
Forum
· Discuss this release
Support CSDb
Help keep CSDb running:



Funding status:




About this site:
CSDb (Commodore 64 Scene Database) is a website which goal is to gather as much information and material about the scene around the commodore 64 computer - the worlds most popular home computer throughout time. Here you can find almost anything which was ever made for the commodore 64, and more is being added every day. As this website is scene related, you can mostly find demos, music and graphics made by the people who made the scene (the sceners), but you can also find a lot of the old classic games here. Try out the search box in the top right corner, or check out the CSDb main page for the latest additions.
Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.089 sec.