Re: [cc65] some little probs...

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-06-20 20:07:25


On Fri, Jun 20, 2003 at 07:54:06PM +0200, Groepaz wrote:
> eh damn...i gotta rephrase... ofcoz i mean "if the *expected* size is known"
> ... ie all immediate loads expect 8bit (or 16bit in 65816 16bit mode) thus
> the value can be savely truncated to that size.

As I've written before: ca65 will only handle numerical expressions without
attributes. So it cannot distinguish between the values -1 and $FFFFFFFF (for
up to 32 bit host machines). While truncating

        val     = -1
        lda     #val

is acceptable,

        val     = $FFFFFFFF
        lda     #val

is not, because it may hide errors in the code.

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 20:07:35 CEST