Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > *stupid* ASM Sid Player Example ?
2006-03-23 15:53
Trifox
Account closed

Registered: Mar 2006
Posts: 108
*stupid* ASM Sid Player Example ?

Hi i just started coding on the good old c64 and i am wondering how to play music in an assembler executable,
on some tutorials i found that the music usually is located at $1000 but if i load a sid file to that location and jump

jsr $1009

nothing happens, the c64 exits my programm, i think it is clear, a sid file is not an assembler programm to jump in, but how do i now play a music file ?!?!?!?

thanks for any reply ...
 
... 20 posts hidden. Click here to view all posts....
 
2006-03-27 10:21
Oswald

Registered: Apr 2002
Posts: 5034
I wrote play, not pay :D
2006-03-27 10:46
Style

Registered: Jun 2004
Posts: 498
hahaha, how do you 'play' someone money? :)
2006-03-27 10:56
cadaver

Registered: Feb 2002
Posts: 1154
Yeah, those write-ADSR-first-then-wave players that strive to achieve the sharp firstframe-attack are quite susceptible to timing differences, *even* when the player just dumps all channel regs in fixed order at the end of channel execution. I know from weird bugreports from some GT users :)

Oldstyle (Hubbard-like) hardrestart & write-order with wave first is much less sensitive, but you never get the scene-approved sharp attacks then.

However, for what's it worth, I believe quite good general solution (for like 99% of tunes) is to write all SID regs in a loop either forwards or backwards. That scpu emulation idea was just for some evil fun..
2006-03-27 11:01
Frantic

Registered: Mar 2003
Posts: 1635
However, changing sid writes to jsr's wouldn't be so easy after all. I mean, you would have to distinguish code from data, at least, to make sure you don't change some music data into a JSR? ...or did I miss something?

So, some kind of built in disassembler would be required too, and it would be fucked if there is some selfmodifying code in the player. ...which leaves us at the emulator again? :)

(And, yes, I understand that we are far from Trifox' initial questions now.)
2006-03-27 11:06
cadaver

Registered: Feb 2002
Posts: 1154
And, if the player was so messed as to use zeropage indirect indexed for SID writes, there would be no room for JSRs. :)
2006-03-27 11:16
Trifox
Account closed

Registered: Mar 2006
Posts: 108
... but anyway, i got a tune played ... to be honest, i can't really hear if a sid tune plays false or correctly, its just beep and buirks and meeps and moooeps ... but if you make a demo without music, no one aligns its head to the big screen ... ;)
2006-03-27 11:40
Stryyker

Registered: Dec 2001
Posts: 465
I have noticed some editors sounds different to packed tunes I guess mostly because of indexed instructions crossing more boundries in the packed tune compared to the editors.
2006-03-27 12:03
Oswald

Registered: Apr 2002
Posts: 5034
taki's cubic player does this, reroutes all sid writes.. so its pretty possible.
2006-04-06 19:55
Axel
Account closed

Registered: Apr 2006
Posts: 42
You can use PSID. It change SID into PRG files witch information where is INT/Play and where is tune in memory. Hope that helps.
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
t0m3000/HF^BOOM!^IBX
la_mettrie
CA$H/TRiAD
Alakran_64
Sande/Hokuto Force
JackAsser/Booze Design
skull
Didi/Laxity
Guests online: 80
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Aliens in Wonderland  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Birth of a Flower  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Offence  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Stinsen  (9.7)
3 Jeroen Tel  (9.6)
4 Linus  (9.6)
5 MacMagix  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.061 sec.