diff options
Diffstat (limited to 'bank7.s')
-rw-r--r-- | bank7.s | 29 |
1 files changed, 15 insertions, 14 deletions
@@ -10,10 +10,12 @@ codedest = $0400 cart_trailer = $bffa .org $a000 ; left cartridge -titledata: +screendata: .incbin "titledata.dat" -dlist: + .res $44, $ff ; fudge factor, keep the DL from crossing a 1K boundary +CART_TARGET = 1 + .include "newtitle.s" ; copy 7680 bytes from $8000-$9dff to (destptr). ; on exit, destptr points to the next 7680 byte chunk. @@ -36,7 +38,7 @@ copy_30_pages: init: rts -start: +cartstart: ; turn off ANTIC DMA to speed up copying to RAM lda #0 sta SDMCTL @@ -63,23 +65,22 @@ start: ; leave bank 3 enabled, as it has our custom font in it ; set up display list - lda #34 - sta SDMCTL - lda #>font - sta CHBAS - ;lda $ff - ;sta CH -;@wait4key: - ;cmp CH - ;beq @wait4key - jsr $0400 + ;lda #34 + ;sta SDMCTL + ;lda #>font + ;sta CHBAS + lda #1 + sta COLDST ; System Reset = reboot + jsr start ; from newtitle.s + jsr $0400 ; run the game (romable_taimain) + jmp cartstart ; redisplay title screen if "play again? N" .if * > cart_trailer .fatal "bank7 code too large" .endif .res cart_trailer - *, $ff - .word start ; entry point + .word cartstart ; entry point .byte 0 ; 0 = cartridge present .byte 4 ; init and run the cart, don't boot the disk, non-diagnostic .word init ; init address (just an RTS) |