| |
MisterMSK Account closed
Registered: Jul 2009 Posts: 37 |
Play a SID in ACME
Hi All,
I wanted to first thank stranger so much for his help with adding a Koala picture into a program. It worked beautify. I am also interested into adding music to the program. I went to code base and they had two examples. I found a few SIDs using Pokefinder and made sure they had a start address of $1000. Anyway, when I tried them I got nothing coming from the good old commodore speakers. I loaded the SID up in a player and it played fine. Just curious if anyone here (which I know the answer to) :) has any experience with adding SID music to some assembler code and can point me into the right direction.
Thanks,
MisterMsk
|
|
... 20 posts hidden. Click here to view all posts.... |
| |
MisterMSK Account closed
Registered: Jul 2009 Posts: 37 |
Quote: Use a hammer.
Nope. That didn't work. Anyone else know of a good music editor/creator that will create the SID files I would need to use with this code? |
| |
GT Account closed
Registered: Sep 2008 Posts: 308 |
Future Composer V1.0
btw: zoom.sid (mc hammer. You'd need 10 years to achive the same result). |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
On C64, SDI seems quite popular in these days. On PC/Mac, Goattracker is the editor to use, I guess.
|
| |
MisterMSK Account closed
Registered: Jul 2009 Posts: 37 |
Hi All,
One last thing. I got the below code embedded in some code. However, when I try to load another program it hangs the music and sometimes crashes. Just curious how I would turn the music off?
*=$0801
entry:
; BASIC stub: "1 SYS 2061"
!by $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00
sei
lda #<irq
ldx #>irq
sta $314
stx $315
lda #$1b
ldx #$00
ldy #$7f
sta $d011
stx $d012
sty $dc0d
lda #$01
sta $d01a
sta $d019 ; ACK any raster IRQs
lda #$00
jsr $0A6F ;Initialize
cli
hold jmp $0DEE
irq
lda #$01
sta $d019 ; ACK any raster IRQs
jsr $0AB4 ;Play
jmp $ea31
*=$0DEE
rest of code...
*=$0A6F
!binary "sound.sid",, $7c+2
|
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
I am not quite sure what you are trying to do. You don't really give enough details. ...but it is clear that loading one program over the same memory range as another (while the other one is still running) will crash the previous program. |
| |
MisterMSK Account closed
Registered: Jul 2009 Posts: 37 |
The SID I have uses $0A6F to $0DED. So I actually built the code around the SID. Anyway, I am loading a program into higher memory. Then move it to lower memory from $0801. Then I run the program. All works fine without any problems. Even by loading the SID in place but commenting the above code.
So, I am just trying stop the SID from playing. |
| |
iAN CooG
Registered: May 2002 Posts: 3197 |
just restore the irq to $ea31 and silence the sid but you should be really sure you don't load anything over the running code before doing so...
sei
jsr $fd15 ; of course if you don't have anything under $fd30-fd50
lda #0
sta $d418
cli
rts
|
| |
MisterMSK Account closed
Registered: Jul 2009 Posts: 37 |
Thank you. It works flawlessly with some tweaks. |
Previous - 1 | 2 | 3 - Next |