z88dk forums

z80 Development Kit

You are not logged in.

#1 2010-07-24 18:19:55

gazsp
New member
Registered: 2010-06-19
Posts: 8

128K paging

Hi all,

I'm writing a program for the Speccy 128K and was just wondering if anybody had any advise on using paged memory.

The program is going to be a mouse-driven AY tracker (if it ever gets finished), and so far occupies about 17Kb of code, and that's only with a single patch editing screen (there will be a few more screens and hopefully MIDI support as well).

Any advice on how to proceed would be much appreciated.

Cheers,
Gaz.

Offline

 

#2 2010-07-25 21:22:41

aowen
Member
Registered: 2008-09-29
Posts: 26

Re: 128K paging

The ideal way would be to abstract the extra RAM as a RAM disk, however as far as I'm aware there's no mechanism for doing this yet. It might be worth taking a look at how the Mojon Twins do it in their 128 games written with z88dk. Source code is available with most of them on World of Spectrum. The only other thing I can suggest is writing the program as a series of 16K chunks of code that can be paged in the top end of RAM and having the main code that calls them located below 49152.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson