home *** CD-ROM | disk | FTP | other *** search
- ; example4.a -- calling modplayer from assembler program
-
- xref _sng ;the name of the object file should be "sng"
- xref _InitPlayer
- xref _PlayModule
- xref _RemPlayer
-
- code
- movem.l a0-a6/d0-d7,-(sp)
- jsr _InitPlayer(pc) ;no error checking needed here!!
- lea _sng,a0
- jsr _PlayModule(pc)
- movea.l 4,a6
- moveq #$40,d0
- lsl.l #6,d0
- jsr -$13e(a6) ;wait for Ctrl-C
- jsr _RemPlayer(pc)
- movem.l (sp)+,a0-a6/d0-d7
- moveq #0,d0
- rts
- end
-