Re: [cc65] Which zero page adresses may i use?

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-11-24 00:00:02


On Sun, Nov 23, 2003 at 11:47:32PM +0100, Benjamin Bahnsen wrote:
> Which parts of the zero page may I use and which ones does the runtime
> environment use?

This is determined by the linker config. Several zero page variables used by
the compiler and runtime may also be used by your own assembler subroutines:

        ptr1, ptr2, ptr3, ptr4, tmp1, tmp2, tmp3, tmp4, sreg

These variables are not expected to be saved across function calls.

> I there a way to use the memory configuration file to say: I
> want to use $F0-$FF, please don't let the program use these adresses.

Yes.

> Does it mean, that the compiled program only uses $02 - $1C?

If this is the linker config used by your program (and it looks like it is the
case) then: yes.

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-11-24 00:00:17 CET