Re: [cc65] old assembly code and zeropage

Date view Thread view Subject view

From: Stephan Lesch (slesch_at_studcs.uni-sb.de)
Date: 2003-02-13 22:55:53


Hi Carlos,

The memory areas the linker occupies are specified in the linker
configuration. ld65 has a built-in config for each target system,
which you can select using the -t switch, or you can write up your own
in a text file and specify that on the command line.
The built-in config for the c64 uses $02-$1c:

 MEMORY {
       ZP: start = $02, size = $1A, type = rw;
       RAM: start = $7FF, size = $c801, define = yes, file = %O;
      }

Regards,
Stephan

On Thu, 13 Feb 2003, stefan wrote:

> I've written an assembly program sometime ago.
> It makes use of some zeropage adresses. Can i flag them somehow,
> that no c procedure overwrites them?
> the varables are defined by:
>
> var = $00xx
>
> It is not important, that they have these absolute adresses. But they should
> be zp.
>
> carlos

----------------------------------------------------------------------
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-02-13 22:56:12 CET