Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

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]

Topic Posted by  Date 
Another DSP question Thadoss Jun,30.2013-22:59
  Re: Another DSP question Thadoss Jun,30.2013-23:41
    Re: Another DSP question mikro Jul,01.2013-15:02
      Re: Another DSP question Thadoss Jul,01.2013-18:51


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson