Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | DSP56807 MACSU instruction operation

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

DSP56807 MACSU instruction operation - wjschint - May 23 3:51:00 2003



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





(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

RE: DSP56807 MACSU instruction operation - Jose Torrico - May 23 15:44:00 2003

RE: [motoroladsp] DSP56807 MACSU instruction operation

Dear Bill,

The combination                 MACSU Y0,X0,B   is invalid
the correct form is     MACSU X0,Y0,B

also be carefull when using the code warrior assembler, because
in this case Code Warrior changed the order without telling you.
Allways select the mix code option to verify that the code
was assembled in the correct form.


Jose Torrico
Commodity Systems
www.commodity.com.br
Sao Paulo-Brazil


-----Original Message-----
From: wjschint [mailto:w...@mchsi.com]
Sent: Friday, May 23, 2003 12:52 AM
To: m...@yahoogroups.com
Subject: [motoroladsp] DSP56807 MACSU instruction operation


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


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/uetFAA/PNArlB/TM
---------------------------------------------------------------------~->

_____________________________________
/groups.php3
 





(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )