Dead Hackers Society
Other BBSes »

Silly Venture 2019
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
Re: Playing a SNDH
Posted by: BBM May,04.2015-09:47 

Hi Grazey,

It's Tomchi's track "LTC 08 Sheep'n' Chip"( - plays fine in XSC s I know the file is fine.

I do depack it first but it bombs out on me on replay...


jsr initialise init library
lea music,a0 load address of packed music file into address register 0
lea depack,a1 load address of buffer in which we are unpacking into address register 1
bsr ice_decrunch depack it, unpacked file will be in our buffer

bclr #0,$484 keyclick off
moveq.l #1,d0 tune 1
jsr depack start playback

*** Backup registers
move.l #backup,a0
move.l $70,(a0)+ backup vector $70 (VBL)
move.l $120,(a0)+ backup vector $120 (timer b)
move.b $fffa07,(a0)+ backup enable a
move.b $fffa13,(a0)+ backup mask a
move.b $fffa15,(a0)+ backup mask b
move.b $fffa1b,(a0)+ backup timer b control
move.b $fffa31,(a0)+ backup timer b data

move.l #vbl,$70.w hook VBL

wait cmp.b #57,$FFFFFC02 wait for space
bne.s wait

jsr depack+4 stop music
move.l #backup,a0
move.l (a0)+,$70 restore vector $70 (vbl)
move.l (a0)+,$120 restore vector $120 (timer b)
move.b (a0)+,$fffa07 restore enable a
move.b (a0)+,$fffa13 restore mask a
move.b (a0)+,$fffa15 restore mask b
move.b (a0)+,$fffa1b restore timer b control
move.b (a0)+,$fffa21 restore timer b data

jsr restore

clr.w -(sp) exit
trap #1

movem.l (sp)+,d0-d7/a0-a6 restore registers
move.w (sp)+,sr restore status register

jsr restore

clr.w -(sp) exit
trap #1

*** VBL Routine ***
vbl move.w #$700,$ffff8240 set the background/border to red for timing
jsr depack+8 music player
move.w #$000,$ffff8240 set the background/border back to black

*** End of VBL ***

include ice_dpck.s
include initlib.s

section data

music incbin sheep.snd

section bss

ds.b 256
depack ds.b 90000
backup ds.b 14

[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Playing a SNDH BBM May,03.2015-22:38
  Re: Playing a SNDH Grazey May,04.2015-00:06
    Re: Playing a SNDH BBM May,04.2015-09:47
      Re: Playing a SNDH evil May,04.2015-10:31
        Re: Playing a SNDH BBM May,04.2015-11:08
          Re: Playing a SNDH Grazey/PHF May,04.2015-11:21
            Re: Playing a SNDH BBM May,04.2015-11:23
              Re: Playing a SNDH BBM May,04.2015-11:27
                Re: Playing a SNDH Grazey/PHF May,04.2015-11:33
              Re: Playing a SNDH gwEm/PHF May,05.2015-15:45
                Re: Playing a SNDH BBM May,05.2015-18:38
                  Re: Playing a SNDH gwEm/PHF May,06.2015-10:06
                Re: Playing a SNDH evil May,05.2015-19:20
                  Re: Playing a SNDH Grazey/phf May,05.2015-20:53
                    Re: Playing a SNDH gwEm May,06.2015-10:15
                  Re: Playing a SNDH gwEm/PHF May,06.2015-10:14
                    Re: Playing a SNDH ggn May,06.2015-12:23
  Re: Playing a SNDH evil May,04.2015-09:03
    Re: Playing a SNDH BBM May,04.2015-09:48

Reply to this message
Anti-troll code:


What's the anti-troll code?
That's your personal code to be able to add comments and messages on the site.
Don't have a code or forgot it? Fix it here.
© 1994-2019 Dead Hackers Society Contact: Anders Eriksson