| |
zenda
Registered: Nov 2006 Posts: 22 |
BASIC Demo - using sid ??!
Hi.
I would like to use this tune in a Basic-demo, but don't know if it is/how it is possible ?? http://www.c64.org/HVSC/MUSICIANS/H/Haard_Lars/Captured.sid
and how do I "capture" it into the basiccode ??
/zenda
17 years ago I could make an asm-demo - now I can do a
10 ? "yes sir I can boogie"
20 goto 10
;-) |
|
| |
null Account closed
Registered: Jun 2006 Posts: 645 |
afaik, you'll either have to link the tune+player to BASIC with some ASM, or ask someone to do it for you (like I did...)
------------------------------------
Knoeki/DigitalSoundsSystem/SwappersWithAttitude |
| |
Mace
Registered: May 2002 Posts: 1799 |
Linking this tune to your BASIC program isn't very hard:
1) load the tune in memory
2) type NEW
3) program your basic file
4) poke 45,186:poke46,128 (for this particular tune)
5) SAVE"basic + music",8
But this still leaves you without a player.
AND DON'T TYPE ANOTHER BASIC LINE AFTER YOU DID THE POKES!
Or the memory is screwed. |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
You will have to install a interrupt music player in memory somewhere, and SYS it from the basic program.
Do you know how to make assembler in a monitor ?
Or else I can do it for you, just send me the basic program on a D64.
jan.harries@get2net.dk
|
| |
zenda
Registered: Nov 2006 Posts: 22 |
Hi
thanx for the replies...
Rambones - I'll send you a d64...
/Zenda |
| |
Graham Account closed
Registered: Dec 2002 Posts: 990 |
@rambones: Avoid $8000-$9FFF for player, because many cartridges with BASIC extensions will crash if you combine BASIC + music then. |
| |
null Account closed
Registered: Jun 2006 Posts: 645 |
/me knows that all to well... but you can also just kill the cartridge after loading... works good enough
anyways, I'm curious about when it's done... =)
------------------------------------
Knoeki/DigitalSoundsSystem/SwappersWithAttitude |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
Hehe, graham, the music IS at 7800-8300..
Now i need to ask a question, he wants a STOP function built in. So how do i properly STOP the IRQ ?
first i did:
sei
lda $0315
sta $c000
lda $0314
sta $c001
lda #>irq
sta $0315
;setup irq and play music
...
then..:
stop:
sei
lda $c000
sta $0315
lda $c001
sta $0314
lda #0
sta $d418
cli
rts
but this dont work, as the basic then halts..
How to to it clean and proper ?
|
| |
Mace
Registered: May 2002 Posts: 1799 |
Usually, the IRQ is just $EA31, so why not just reset those values in $0314/$0315?
Also, you only set $0315 in the example above.
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
Got it working now.
I had installed a raster irq, and that wouldnt stop properly, now i just used plain CIA (which the music is anyway).
all ok :)
|
| |
JackAsser
Registered: Jun 2002 Posts: |
Just redirect $0314/15 to their default values (i.e. $ea31), also stop the raster IRQs from being generated ($d01a=0). Your stop routine garbages the A-register, I dunno if that's the cause to your problems.
try:
stop:
sei
pha
lda #<$ea31
sta $0314
lda #>$ea31
sta $0315
lda #$00
sta $d418
sta $d01a
pla
cli
rts
|
... 3 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 - Next |