Re: [cc65] statics in zero page

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-05-22 11:01:50


On Wed, May 22, 2002 at 04:52:29AM -0400, Keates, Mark wrote:
> However, looking at the code produced,
> pCheck isn't used directly so there wouldn't
> be any advantage to this mothod :-(

This is what I said before (and what is also true for the Lynx cc65 and his
"zstatic" keyword): The storage is used as variable storage, not as a
register, so you save one cycle per access, but the variable will not be used
with the special zero page addressing modes. This was one of the reasons why I
don't think the "zstatic" variables of the Lynx compiler are really so cool as
they look at the first glance.

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 : 2002-05-22 11:01:52 CEST