Re: 720 bank switching (was: Pascal compiler)

From: Marko Mäkelä (marko.makela_at_hut.fi)
Date: 2002-10-07 20:12:16

On Mon, Oct 07, 2002 at 06:20:53PM +0200, Ullrich von Bassewitz wrote:
> Unfortunately, the ROM routines are of no help for this.

I'm glad to see I wasn't mistaken.  It seemed that the ROM routines would work
if the bank switching code at the top of the KERNAL ROM was copied also to the
target bank.  But the KERNAL ROM doesn't do this by default, and I couldn't
find any routine for doing that either.

> The remainder of the program is laid out so that it starts at address $105
> in bank 1.

That is quite clever, I must say!  I think that you might be able to save a
few bytes by POKEing the memory locations from which the SYS statement loads
the A and P registers before jumping to the target address.  Then you'd just
have to POKE the STA$00 to the zero page or to the stack.

	Marko

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.4.