Re: [cc65] some little probs...

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-06-20 18:05:50


On Friday 20 June 2003 12:17, Ullrich von Bassewitz wrote:

> The reason for the checks lies in a design decision for the assembler,
> which I do regret, but it's not easy to change. Expressions are always
> numerical and don't have attributes. This means among other things that the
> assembler cannot distintuish between -1 and $FFFFFFFF (provided that longs
> are 32 bit, which is true for most of todays platforms). For the first
> value, it would be ok to convert it to an 8 or 16 bit value, for the second
> one, it would not. Maybe I can add something like
>
>         .relaxcasts
>
> which will allow truncation of values with the high bits all ones without
> an error or warning. Would this be acceptable?

thats why i said "at places where the size of the expression is known" - since 
at these places its ok to just truncate the value. (it might be problematic 
at other places).

gpz
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-06-20 18:08:03 CEST