Re: [cc65] C128 Bank Switching and cc65

From: Mark J. Reed <markjreed1gmail.com>
Date: 2010-05-06 14:11:11
Swapping out to disk is a last resort.  It's a 128 - use bank 1.
INDSTA and INDFET are as easy to use as any other kernal routine.  I
would still swap out to bank 1 as if it were secondary storage, rather
than try to use it as main memory, though if there's any data manip on
big chunks you could save cycles by putting a copy of that part of the
code in bank 1 and calling it with JSRFAR instead of fetching and
calling and storing back all the time.

If you don't rely on JSRFAR, this generalizes easily to take advantage
of an REU if present.  Going to disk if you still need more space is
doable, but significantly more work, and introduces a
pseudo-Heisenberg complication: does the swap file show up in the
directory list? :)  And let's not forget that real cbm drives are
slo-o-w. On a 128 you can at least use the faster bus rate with drives
that support it...

-- 
Mark J. Reed <markjreed@gmail.com>
----------------------------------------------------------------------
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 May 6 14:11:45 2010

This archive was generated by hypermail 2.1.8 : 2010-05-06 14:11:48 CEST