[bascom] An unfair bug in BASCOM 8051 V. 2.0.3.0


From "Udo Barthel" <info@pcds.de>
Date Thu, 14 Dec 2000 19:08:25 +0100

Error in Multiplication if the result is in the value range of a long
variable:

LONG = BYTE * CONST ... works o.k.
LONG = WORD * CONST .... gives bad results

Its obvious that the math is not performed in the value range of the target
variable if a word variable is used. But why does it seems to work with a
byte variable? Thats inconsistent.


_____________________________

With  best regards / Udo Barthel

The statements and opinions expressed here are my own and do not necessarily
those of PCDS software GmbH.

visit us at <http://www.pcds.de>
Phone: +(30)41.09.02-0 Fax: -99

Attachment: error_test.BAS
Description: Binary data