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

Atari coding BBS
 
DSP sign extend question
Posted by: Thadoss Oct,30.2013-01:28 

Hi all,

I'll stuck on a stupid problem : I transfer a 16 bits signed value from the 68030 to the DSP and in the DSP, I write this value into the memory like this :

; CPU SIDE

clr.b $ffffa205.w
wait_dsp_transmit
move.w #200,d3

.loop_send_dsp_x0
move.w (a1)+,$ffffa206.w
dbf d3,.loop_send_dsp_x0


; DSP SIDE
do #200,receive_values
wait_receive
movep x:HRX,x:(r1)+
receive_values


The problem is when I want to use the negative values, they look like $00ffff into memory and they're not sign extended to 24 bits.

I'm sure I've already read something about this when I worked on hatari DSP emulation, but I've forgotten.

Any help needed please.

Thanks in advance,

Regards

Laurent / Thadoss








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
DSP sign extend question Thadoss Oct,30.2013-01:28
  Re: DSP sign extend question mikro Oct,30.2013-11:43
    Re: DSP sign extend question Thadoss Oct,30.2013-12:37
      Re: DSP sign extend question mikro Oct,30.2013-14:09
        Re: DSP sign extend question ggn Oct,30.2013-14:55
          Re: DSP sign extend question ggn Oct,30.2013-16:03
        Re: DSP sign extend question Thadoss Oct,30.2013-17:43
        Re: DSP sign extend question Thomas / New Beat Nov,07.2013-08:59
          Re: DSP sign extend question Thomas / New Beat Dec,11.2013-09:29
            Re: DSP sign extend question Thomas / New Beat Dec,12.2013-20:14


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