C128 Banking via Kernal [message #274604] |
Mon, 01 December 2014 08:25 |
Harry Potter
Messages: 1304 Registered: March 2012
Karma: 0
|
Senior Member |
|
|
Hi! I'm wondering: how do I handle RAM banking using the C128's kernal? I can do it directly (via the MMU) but not through the kernal. It's probably easier and faster through the MMU, though. Anyway, I'm just wondering.
|
|
|
Re: C128 Banking via Kernal [message #274731 is a reply to message #274604] |
Tue, 02 December 2014 16:32 |
rusure
Messages: 1030 Registered: March 2012
Karma: 0
|
Senior Member |
|
|
On Monday, December 1, 2014 6:25:36 AM UTC-7, Harry Potter wrote:
> Hi! I'm wondering: how do I handle RAM banking using the C128's kernal? I can do it directly (via the MMU) but not through the kernal. It's probably easier and faster through the MMU, though. Anyway, I'm just wondering.
The C128 Programmers Reference Guide found here :
http://www.devili.iki.fi/pub/Commodore/docs/books/
storage
has a complete list of C128 kernal calls beginning on page 442.
Included are some utilities for data storage and retrieval from banks differing from that of an executing program. In addition, there are routines for JMPing and JSRing to code in banks differing from that of the calling programm. I don't think kernal routine usage would slow down programs significantly. However, usage of memory configurations other than C128 bank configurations require the use of the MMU directly. I had to use a memory configuration utility from COMPUTE GAZETTE when I stored a T!O!N of printer graphics data in bank 1 and used IO devices (accessible in bank 15?). I don't think this could have been done with the C128 kernal.
|
|
|
|