home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Supremacy 1
/
Supremacy-1.iso
/
DEMOS
/
U-V
/
ULTCHPDK.ZIP
/
SOURCES.ZIP
/
ASM68000.ZIP
/
TAO_ACF2.S
< prev
next >
Wrap
Text File
|
1996-06-07
|
2KB
|
105 lines
;
; TAO Digi Music Driver
; ---------------------
;
; I didn't hack or rip these - Thanks to Penguin of Animal Mine for
; sending them to me !!
;
; Released on "Makin' Sweet Music Volume II" - 24/10/1992
start clr.l -(a7) ; supervisor mode
move.w #$20,-(a7)
trap #1
addq.l #6,a7
move.l d0,old_sp
move.l $70.w,old_70 ; store old VBL
move.w $ffff8240.w,old8240 ; store border colour
lea text(pc),a0 ; print text
bsr print
move.b #12,$fffffc02.w ; kiss it mousey !!
bsr.s play ; start the music
wait move.b $fffc02,d0 ; key pressed ?
cmpi.b #$39,d0 ; was it space ?
bne.s wait ; nope !!
bsr.s stop ; stop music
move.b #8,$fffffc02.w ; come back mousey - I forgive you !
exit move.l old_70,$70.w ; restore VBL
move.w old8240,$ffff8240.w ; restore border colour
move.l #old_sp,-(sp) ; user mode
move.w #$20,-(sp)
trap #1
addq.l #6,sp
clr.l -(sp) ; bye bye everybody
trap #1
play bclr #0,$484.w ; silence bell
moveq #1,d0 ; initialise music
jsr music
move.l #new_70,$70.w ; start new VBL
exitpl rts
stop moveq #0,d0 ; switch off music
jsr music ; call routine
bset #0,$484.w ; bell on
rts
new_70 movem.l d0-d7/a0-a6,-(sp) ; store registers
move.w #$fff,d0 ; a wee pause
loop dbf d0,loop
move.w #$700,$ff8240 ; red
jsr music+8 ; call music
move.w #$777,$ff8240 ; white
movem.l (sp)+,d0-d7/a0-a6 ; restore registers
rte
print move.l a0,-(sp) ; print a0 routine
move.w #9,-(sp)
trap #1
addq.l #6,sp
rts
text dc.b $1b,"E"
dc.b "+----------------+",13,10
dc.b "| TAO Digi Music |",13,10
dc.b "+----------------+",13,10,10
dc.b "Space to exit.",13,10
dc.b 0
old_sp ds.l 1
old_70 ds.l 1
old8240 ds.w 1
music incbin "sleep.mus" ; music file
even
; List of files:
; --------------
;
; INIT = start + 0 ; d0 = 1 start music / 0 = switch off music
; VBL = start + 8
;
; Musics done by TAO of ACF
; with some C64 & AMIGA conversions...
;
; MANIACS.MUS
; PREMIX.MUS
; SLEEP.MUS (Remind you of the old Amiga Demo by TEX ??)
; ZOOLOOK.MUS
; ENDTHEME.MUS (Remind you of the old Amiga Demo by TEX ??)
;
; Don't forget to credit this guy (I assume that it is a bloke!) for
; converting these tunes.
;
; MUG U.K - 24/10/1992