[stella] F4/F6/F8 Bankswitching

Subject: [stella] F4/F6/F8 Bankswitching
From: Aaron Bergstrom <aaron.bergstrom@xxxxxxxxxxxxxx>
Date: Sun, 15 Jun 2003 10:27:06 -0400
I've read through the sizes.txt file on The Dig. I understand that to switch banks using the F4 method I should call something like:

LDA $1FF5

or

LDX $1FF5

But I'm not clear on how the ASM file is to be structured so that each bank has an address of $1000 to $1FF3.

I've looked through Paul Slocum's Marble Maze code found at:
http://www.biglist.com/lists/stella/archives/200207/msg00018.html

That code seems fairly straight forward. However, what is not clear to me is how the code included files are structured:
marbank2.asm
marbank3.asm
marbank4.asm


Would the code in each of these includes look something like this:

	processor 6502
	include vcs.h
        org $1000
Bank1 = $1FF4
Start
        ;...some code here...
        LDA Bank1; call to send the processor back to the first bank
        ;....
	org $1FF3
        .word Start
	.word Start

Would the references to Start even be needed?

Also are there some other DASM commands required like SEG and RORG?

Or should the ORG's be pointing to a different address, something like this:
        org $2000
        org $2FF3


Thanks,


Aaron


---------------------------------------------------------------------------------------------- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/


Current Thread