Re: A86: RAM Pages


[Prev][Next][Index][Thread]

Re: A86: RAM Pages



At 12:00 AM 9/5/97 -0400, you wrote:
>If I have a program's data stored in a separate asm program (because the one
>program is becoming too big to store its own data), and I use rst 20h\rst 10h
>to find the data program, as long as it's less than 16k, will it always be on
>only 1 page or will it most likely span pages?
>
>~Stephen Hicks
>
>

What I like to do is use both ports 5 and 6

Load the page told to you by rst 10 into port 5, and the following page
into 6.  Therefore, if it overlaps into the next page, it's right there.
Of course, this will stop all ROM calls you want to make to the jump table.  

That was probably confusing:

port 5 - $4000-$7FFF	;this is the first part of the program

port 6 - $8000-$BFFF	;here's the second part

16K will work all the time, however, more than that, and it might overlap
into 3 pages.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Alan Bailey            mailto:bailela@charlie.cns.iit.edu
 IRC:Abalone              Web:http://www.iit.edu/~bailela/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 


References: