*************************************************************************** * Music player coded by OB of Anatomica * *************************************************************************** jsr setsuper jsr setscreen move.l $70.w,oldvbi move.l $114.w,old114 move.l #music,A0 move.l #$73f58,A1 MOVE.L #$1f40,D0 muslup3 MOVE.B (A0)+,(A1)+ DBF D0,muslup3 move.l #music,A0 add.l #$1f30,a0 move.l #$70000,A1 MOVE.L #$fa0,D0 muslup4 MOVE.B (A0)+,(A1)+ DBF D0,muslup4 move.l #$60c12,$750d4 ;This just corrects a relocation bug jsr $73fe6 move.l #newvbi,$70.w *************************************************************************** mainloop: jsr waitvbl cmp.b #57,$fffc02 beq slut jmp mainloop *************************************************************************** slut: move.l oldvbi,$70.w move.l old114,$114.w move.l #$08080000,$ff8800 move.l #$09090000,$ff8800 move.l #$0a0a0000,$ff8800 jsr endsuper clr.w -(sp) trap #1 *************************************************************************** setsuper: clr.l -(sp) move.w #$20,-(sp) trap #1 addq.l #6,sp move.l d0,savesuper rts *************************************************************************** endsuper: move.l savesuper,-(sp) move.w #$20,-(sp) trap #1 addq.l #6,sp rts *************************************************************************** newvbi: move.w #1,vbiflag jsr $74ed2 rte *************************************************************************** waitvbl: cmpi.w #1,vbiflag bne waitvbl move.w #0,vbiflag rts *************************************************************************** setscreen: move.w #0,-(sp) move.l #$30000,-(sp) move.l #$30000,-(sp) move.w #$5,-(sp) trap #14 add.l #12,sp rts *************************************************************************** section data savesuper: dc.l 0 vbiflag: dc.w 0 oldvbi: dc.l 0 old114: dc.l 0 music: incbin "mon\alloy.rel" musicend: end