some reset fixes

This commit is contained in:
Peter Ferrie 2019-12-28 12:52:21 -08:00
parent 62d0581de4
commit 50c8692a30
4 changed files with 62 additions and 1 deletions

31
src/prelaunch/aztec.a Normal file
View File

@ -0,0 +1,31 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/AZTEC",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $98A
jsr $800 ; find and load "DOS"
lda #<callback
sta $B748
lda #>callback
sta $B749
jmp $B700
callback
ldx #0
stx $9E52
inx
stx $9E53 ; reset vector patch
+DISABLE_ACCEL
jmp $9D84
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -7,8 +7,29 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
+USES_TEXT_PAGE_2
jmp $800
lda #$60
sta $97C
jsr $800 ; find and load "DOS"
lda #<callback
sta $B748
lda #>callback
sta $B749
jmp $B700
reset
+READ_ROM_NO_WRITE
jmp $FAA6
callback
lda #>reset
sta $9E31
lda #<reset
sta $9E3C ; reset vector patch
+DISABLE_ACCEL
jmp $9D84
!if * > $1C0 {
!error "code is too large, ends at ", *

View File

@ -11,9 +11,14 @@
lda #$60
sta $3D34
jsr $0800 ; decompress
+RESET_VECTOR reset
+DISABLE_ACCEL
jmp $6000
reset
+READ_RAM2_NO_WRITE
jmp ($FFFC)
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -22,6 +22,10 @@
sta $7B8B ; patch - never decrease lives (player 1)
sta $7B81 ; patch - never decrease lives (player 2)
+
lda #$AD
sta $209
sta $211
sta $21C
+DISABLE_ACCEL
jmp $B7A1