home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d483
/
med
/
med.lzh
/
MED
/
Programmers
/
Examples
/
example4.a
< prev
next >
Wrap
Text File
|
1991-05-08
|
433b
|
22 lines
; 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