Re: [cc65] Banking out ROM (was: TGI preview)

From: Oliver Schmidt <ol.sc1web.de>
Date: 2009-11-14 12:47:20
Hi Fatih,

> How do those platforms handle disk i/o?
>
> [...] But in Atari,
> you have all of the ROM banked in or out all at once. So I can't load anything into the extra
> memory from disk, because the i/o routines are in the rom and when the rom is enabled to
> call them, they just try to write over the rom, which obviously doesn't work.

The situation on the Apple2 is similiar to what you describe. The
"extra memory" can in general only be used by relocating stuff there
or as BSS / heap / stack. I decided to go for code (or rodata)
relocation and introduced the 'HIGHCODE' segment.

But as cc65 loads drivers and vector fonts(?) onto the heap having
your startup code just do a _heapadd(<extra memory>) might already
help a lot...

Best, 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 Sat Nov 14 12:47:26 2009

This archive was generated by hypermail 2.1.8 : 2009-11-14 12:47:29 CET