Re: [cc65] More on Zero page vars

From: Karri Kaksonen <karri1sipo.fi>
Date: 2009-02-08 17:53:33
Groepaz wrote:
> On Sonntag 08 Februar 2009, Tachdaun wrote:
>   
>> [nes.cfg]
>> ZP:  start = $02, size = $1A, type = rw, define = yes;
>>
>> But there are those other variables defined at the zero page, like
>> ppubuf_write and such, over $1C
>>     
>
> yeah so, the runtime uses $02-$1a, and the NES specific lib uses whats defined 
> in that .inc file you found... everything else (above $7x something) is free 
> for you to use.
>
>   

It is much better to start allocating zeropage variables fromm $ff and 
go down. In this way user programs can always use zeropage starting from 
$00. This is the way the Atari Lynx target works.

--
Karri

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Feb 8 17:53:43 2009

This archive was generated by hypermail 2.1.8 : 2009-02-08 17:53:45 CET