|
Atari coding BBS
Another DSP question |
Posted by: Thadoss
|
Jun,30.2013-22:59
|
Hi,
Sorry to disturb again, but I'm stuck with a strange problem :
I've written my little DSP code in a easy to test program. Everything runs well.
When I include my DSP code into my main project, the DSP code doesn't load : the DSPexecProg TRAP never leaves (I've put a <--- HERE comment in the next code to show where my breakppoint never arrives).
I use the same code (copy/paste) in the both programs (the test program and the main project one).
dsp_exec_prg:
; Initialise the DSP before using it (call Nocrew DSP_reset code)
bsr.w dspmod_dsp_load_program
; DSP_Unlock
move.w #105,-(sp)
trap #14
addq.w #2,sp
.dsp_locked: ; DSP_Lock
move.w #104,-(sp)
trap #14
addq.w #2,sp
tst.w d0
bne.s .dsp_locked
; DSP_RequestUniqueAbility
move.w #113,-(sp)
trap #14
addq.w #2,sp
; DSP_ExecProg
move.w d0,-(sp)
move.l #(dsp_exe_fin-dsp_exe_debut)/3,-(sp)
pea dsp_exe_debut
move.w #109,-(sp)
trap #14
lea 12(sp),sp ; <--- HERE
rts
Any idea of the problem ? Does it rings a bell to someone ?
Regards
Laurent/ Thadoss
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|