home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaMiscModsCD2.iso / Custom / CUST.Megasquad.asm < prev    next >
Encoding:
Assembly Source File  |  1999-12-31  |  1005 b   |  54 lines

  1. ; $VER: CUST.Megasquad.asm (13.06.99)
  2. ; by Kyzer/CSG
  3.  
  4.     include    misc/deliplayer.i
  5.  
  6.     SECTION    player,code
  7.     PLAYERHEADER tags
  8.  
  9.     dc.b    '$VER: CUST.Megasquad 1.0 (13.06.99)'
  10.     dc.b    ' by Clay Hellman, rip by Kyzer <kyzer@4u.net>',0
  11.     cnop    0,4
  12.  
  13. tags    dc.l    DTP_CustomPlayer,1
  14.     dc.l    DTP_InitPlayer,initply
  15.     dc.l    DTP_InitSound,mt_init
  16.     dc.l    DTP_Interrupt,mt_play
  17. ;    dc.l    DTP_EndSound,mt_end
  18.     dc.l    DTP_EndPlayer,endply
  19.     dc.l    DTP_NewSubSongRange,subsong
  20.     dc.l    DTP_DeliBase,delibas
  21.     dc.l    TAG_DONE
  22.  
  23. subsong    dc.w    4,1,6
  24. delibas    dc.l    0
  25.  
  26. initply    move.l    dtg_AudioAlloc(a5),a0
  27.     jmp    (a0)
  28. endply    move.l    dtg_AudioFree(a5),a0
  29.     jmp    (a0)
  30.  
  31. mt_init    movem.l    d0-d7/a0-a6,-(sp)
  32.     move.l    delibas(pc),a5
  33.     move.w    dtg_SndNum(a5),d0
  34.     jsr    MT_INIT
  35. .done    movem.l    (sp)+,d0-d7/a0-a6
  36.     rts
  37.  
  38. mt_play    movem.l    d0-d7/a0-a6,-(sp)
  39.     jsr    MT_INT
  40.     movem.l    (sp)+,d0-d7/a0-a6
  41.     rts
  42.  
  43. mt_end    lea    $dff000,a0
  44.     moveq    #0,d0
  45.     move.w    d0,$a8(a0)
  46.     move.w    d0,$b8(a0)
  47.     move.w    d0,$c8(a0)
  48.     move.w    d0,$d8(a0)
  49.     move.w    #$f,$96(a0)
  50.     rts
  51.  
  52.      section    mega,code,chip
  53.     include    megasquad.asm
  54.