AW: [Mspgcc-users] Something strange with multiplication of const ant byte numbers

2004-10-21 Thread Else Marcus
; > > Sent: Wednesday, October 20, 2004 2:16 PM > > > To: mspgcc-users@lists.sourceforge.net > > > Subject: Re: [Mspgcc-users] Something strang

AW: [Mspgcc-users] Something strange with multiplication of const ant byte numbers

2004-10-20 Thread Else Marcus
op r2 ; } 1e: 30 41 ret - mov #-76, &0x0138 ;#0xffb4 --> why not:mov.b #180, &0x0138 Marcus > this is a feature actually:) > you forgot about operations order. > ~

[Mspgcc-users] Something strange with multiplication of constant byte numbers

2004-10-20 Thread Else Marcus
Hello! There is something strange with multiplication of constant byte numbers. -- Example 1.1: unsigned int multiplikation (unsigned char wert) { return (unsigned int)((unsigned int)wert*((unsigned int)180));