Reset vector patches (#83)

* 2 more

* Reset vector patches

These are all for games which previously rebooted.
This commit is contained in:
frankmilliron 2019-12-25 09:43:15 -08:00 committed by 4am
parent 9bee3b5f75
commit 119e99edd0
6 changed files with 76 additions and 0 deletions

6
src/prelaunch/cannonball.bltz.a Normal file → Executable file
View File

@ -18,6 +18,12 @@
sta $7dbf ; patch - don't increase lives
sta $9c01 ; patch - don't decrease lives
+
+RESET_VECTOR $100
lda #$2C
sta $A0D2
sta $A0D5
sta $A0DA ; reset fix
+DISABLE_ACCEL
jmp $a000

1
src/prelaunch/free.fall.a Normal file → Executable file
View File

@ -22,6 +22,7 @@
sta $7E11 ; patch - don't increase lives
sta $BE11 ; patch - don't increase lives
+
+RESET_VECTOR $100
+DISABLE_ACCEL
jmp $4000

1
src/prelaunch/gamma.goblins.a Normal file → Executable file
View File

@ -21,6 +21,7 @@
lda #$00
sta $7F62 ; patch - don't increase lives
+
+RESET_VECTOR $100
+DISABLE_ACCEL
lda #$00
tay

20
src/prelaunch/outpost.a Executable file
View File

@ -0,0 +1,20 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/OUTPOST",plain
*=$106
!source "src/prelaunch/common.a"
;+ENABLE_ACCEL ; can't
lda #$60
sta $3EF2
jsr $3EC8 ; decompress/title
+RESET_VECTOR $100
jmp $200
!if * > $1C0 {
!error "code is too large, ends at ", *
}

26
src/prelaunch/photar.a Executable file
View File

@ -0,0 +1,26 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/PHOTAR",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $1027
jsr $1000 ; decompress
lda #0
sta $60
sta $61
sta $62 ; uses reset vector for setup code
+RESET_VECTOR $100
+DISABLE_ACCEL
jmp $3FA
!if * > $1C0 {
!error "code is too large, ends at ", *
}

22
src/prelaunch/raster.blaster.a Executable file
View File

@ -0,0 +1,22 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/RASTER.BLASTER",plain
*=$106
!source "src/prelaunch/common.a"
;+ENABLE_ACCEL ; can't
lda #$60
sta $825
jsr $800 ; decompress
+RESET_VECTOR $100
jsr $8200 ; title
jmp $FEBC ; demo
!if * > $1C0 {
!error "code is too large, ends at ", *
}