Page 1 of 1

2 introcoding problems plz help

Posted: Tue Mar 21, 2006 6:28 pm
by xperience2003
how can i play deltamusic 2 modules?
deltamusic is easy to use the replayer is inside the module, but
the module must be in chipram

Code: Select all

DisableDebugger
MOVE.l #1,D0   ;init the module
MOVE.l pmusix,A0
JSR (A0)
EnableDebugger

 Repeat
    VWait()
 
   DisableDebugger 
   MOVE.l #0,D0        ;call replay 
   MOVE.l pmusix,A0
   JSR (A0)
   EnableDebugger    
 Until mousebuttons()=1
 end

musix: IncludeBinary "DM2.3"
does not run

in asmone i can locate the programm in chipram only
and this

Code: Select all

moveq	#1,d0	; INIT MUSIC
jsr music_data	 ; CALL THE PLAYER
wait:
moveq	#0,d0	 ; SET REPLAY MODE
jsr	music_data ; CALL THE PLAYER
btst #6,$bfe001   ;wait for mouse
bne.s wait

MUSIC_DATA incbin "dm2.3"
runs fine

another problem^^

how can i copy included bitmaps in the
allocatebitmap() - memory ???
( "decodebitmap"-command like =) )

hope someone have a idea or samplecode for me =)

ps: sry for my bad english lol

Posted: Wed Mar 22, 2006 5:19 pm
by Dreamland Fantasy
Shouldn't that be:

Code: Select all

pmusix: IncludeBinary "DM2.3" 
You seem to have missed a 'p'.

Kind regards,

Francis.

Posted: Wed Mar 22, 2006 5:39 pm
by xperience2003
no..the compiler add a "p" on includebinary labels

Code: Select all

; MUSIC_DATA: IncludeBinary "dm2.3"
pMUSIC_DATA:
  INCBIN   "dm2.3"
_PB_EOP: