Re: [cc65] some little probs...

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-06-20 12:17:26


Hi!

On Fri, Jun 20, 2003 at 05:52:42AM -0400, Keates, Mark wrote:
> > You mean something like "lda #-1"?
>
> certainly the IDA disassembler produces this kind of output by default,
> which cant be changed :-(
>
> Definately a nice to have as I typically end going through the whole listing
> to convert these.

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?

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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 12:17:40 CEST