[Icc-avr] Simple subtraction goes wrong
Jaspers, Ton
t.jaspers at cpseurope.com
Tue Apr 24 04:23:08 PDT 2007
> -----Original Message-----
> From: icc-avr-bounces at imagecraft.com
> [mailto:icc-avr-bounces at imagecraft.com] On Behalf Of Andy Syms
> Sent: dinsdag 24 april 2007 12:48
> To: Discussion list for ICCAVR and ICCtiny Users. You do NOT
> need tosubscribeto icc-announce if you are a member of this.
> Subject: RE: [Icc-avr] Simple subtraction goes wrong
>
> > 0x8000 is -1 if it is a signed int (15 bit value and a sign bit)
>
> Er, that would be -65536. -1 is 0xFFFF.
Oops, but 0x8000 is -32768 ;-)
TJ
More information about the Icc-avr
mailing list