|
Subject: [stella] 8K Bankswitch template From: Manuel Polik <cybergoth@xxxxxxxx> Date: Thu, 19 Sep 2002 08:54:18 +0200 |
Hi there!
Since I was struggling some 3 hours to get that going
last night, I thought some of you might find this
helpful at times:
############################################
;-------------------------------------------
; 8K BANKSWITCH TEMPLATE
; written by Manuel Polik 19.09.02
;-------------------------------------------
processor 6502
include vcs.h
SEG.U vars
ORG $80
dummy1 .byte
SEG Bank0
ORG $1000
RORG $D000
MainGame
JMP SwitchToBank1
; ... remove above and add ~4K code/data here...
ORG $1FF0
RORG $DFF0
SwitchToBank1:
BIT $1FF9
JMP MainGame
.byte $FF, $FF, $FF, $FF
.word SwitchToBank1
.word SwitchToBank1
.word SwitchToBank1
SEG.U variables
ORG $80
dummy2 .byte
SEG Bank1
ORG $2000
RORG $F000
start
JMP SwitchToBank0
; ... remove above and add ~4K code/data here...
ORG $2FF0
RORG $FFF0
SwitchToBank0:
BIT $1FF8
JMP start
.byte $FF, $FF, $FF, $FF
.word start
.word start
.word start
############################################
Note: It does nothing but permanent bank-switching. :-)
Greetings,
Manuel
----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [stella] yeah, 2 line kernal, *that, KirkIsrael | Thread | Re: [stella] 8K Bankswitch template, Fabrizio Zavagli |
| Re: [stella] New ball game, Fabrizio Zavagli | Date | Re: [stella] 8K Bankswitch template, Fabrizio Zavagli |
| Month |