Re: [cc65] ca65 for stand-alone asm projects

From: Oliver Schmidt <ol.sc1web.de>
Date: 2010-11-11 11:59:54
Hi,

> We wouldl get more RAM when we
> copy C functions under the ROM and have a possibility to call them in a
> special way (switching off OS/IRQs, calling, switching on OS/IRQs after
> return).

If I understand the above correctly then that's something done on the
Apple2 too. However the user needs to explicitly make us of it by
placing code in a HIGHCODE segment. See here:
http://www.cc65.org/doc/apple2-3.html

So there are actually two segments copied by the Apple2 crt0.s:
- The INIT segment is copied in the heap/stack
- The HIGHCODE segment is copied under the ROM

...maybe really worth some inline documentation ;-))

Regards,
Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Nov 11 12:01:50 2010

This archive was generated by hypermail 2.1.8 : 2010-11-11 12:01:54 CET