Re: [cc65] register vars

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-01-28 17:39:30


Hi!

On Fri, Jan 24, 2003 at 01:21:04AM +0100, Stephan Lesch wrote:
> Same result when I remove the pragma, and still the same if I remove the
> pragma and the 'extern' lines, and declare the variable using
> static unsigned char *source = (unsigned char*)0xfc;
> instead...

The problem is that the variable is correctly imported as zero page variable
(so the assembler will use zero page addressing mode when accessing this
variable), but the compiler will not make use of it as zero page variable, so
it's still copied when using it as a pointer.

> Is there a way to get, e.g. sta($fa),y, if source == $fa?

Currently not. I will have to check if there is a simple way to make this
work, but I'm still somewhat short in time (and still catching up with my
mailbox:-).

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-01-28 17:39:32 CET