Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).
|
I am executing the following instruction on the DSP56807: MACSU Y0,X0,B Where, before execution: Y0 = 0xFFF9 X0 = 0x041E B = 0 After: B = B2:B1:B0 = 0x00 083B C65C (it is treating Y0 as unsigned) Why doesn't this instruction treat Y0 as a two's-compliment signed number? (ie. Y0 = -6), in which case the result would be: B = 0xFF FFFF CE98 There has to be a simple explanation - someone please set me straight... Thank you - Bill Schintler |
|
|
|
Dear Bill, The combination
MACSU Y0,X0,B is invalid
also be carefull when using the code warrior assembler, because
Jose Torrico
-----Original Message-----
I am executing the following instruction on the DSP56807: MACSU Y0,X0,B Where, before execution:
After:
Why doesn't this instruction treat Y0 as a two's-compliment signed
B = 0xFF FFFF CE98 There has to be a simple explanation - someone please set me
------------------------ Yahoo! Groups Sponsor
---------------------~-->
_____________________________________
|