Reset Fixes / Update Titles (#78)

* Reset Fixes / Update Titles

* Fixed the fixes

arkanoid now reboots. moon patrol was using $100 as a variable. fixed my flag error.

* Update arkanoid.a

missed one

* Update games.conf

removed extra space in HERO

* Update arkanoid.a

BIT
This commit is contained in:
frankmilliron 2019-12-22 11:55:47 -08:00 committed by 4am
parent 8e223c8264
commit 18ada7a212
7 changed files with 153 additions and 1 deletions

2
res/games.conf Normal file → Executable file

File diff suppressed because one or more lines are too long

16
src/prelaunch/arkanoid.a Normal file → Executable file
View File

@ -11,6 +11,7 @@
lda #$60
sta $97e
jsr $800
lda MachineStatus
and #CHEATS_ENABLED
beq +
@ -22,6 +23,21 @@
jsr DisableAccelerator
lda $c08b
jsr $ee1f
lda #$82
sta $101
lda #$A6
sta $104
lda #$FA
sta $105 ; update TR hook to reboot
lda #0
sta $FFFC
lda #1
sta $FFFD ; reset vector fix
lda #$2C
sta $600
sta $603 ; BIT setting the reset
jmp $981
!if * > $1C0 {

13
src/prelaunch/moon.patrol.a Normal file → Executable file
View File

@ -21,6 +21,19 @@
sta $2d07
sta $1c17
+
ldy #6
- lda $100-1,y ; game uses $100 as variable
sta $1B0-1,y ; move hook to $1B0
dey
bne -
lda #$B0
sta $3F2
lda #$01
sta $3F3
lda #$A4
sta $3F4 ; reset vector patch
+DISABLE_ACCEL
jmp $919

32
src/prelaunch/sabotage.a Executable file
View File

@ -0,0 +1,32 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/SABOTAGE",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60 ; hook1
sta $4020
jsr $4000 ; decompress1
+DISABLE_ACCEL
jsr $6B00 ; decompress2/title
lda #$60 ; hook2
sta $1DB2
jsr $1D1F
lda #0
sta $3f2
lda #1
sta $3f3
lda #$A4
sta $3f4 ; reset vector patch
jmp $42BC
!if * > $1C0 {
!error "code is too large, ends at ", *
}

27
src/prelaunch/spdway.classic.a Executable file
View File

@ -0,0 +1,27 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/SPDWAY.CLASSIC",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60 ; hook
sta $2078
jsr $2000 ; decompress
lda #0
sta $3F2
lda #1
sta $3F3
lda #$A4
sta $3F4 ; reset vector patch
+DISABLE_ACCEL
jmp $817
!if * > $1C0 {
!error "code is too large, ends at ", *
}

32
src/prelaunch/starblaster.a Executable file
View File

@ -0,0 +1,32 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/STARBLASTER",plain
*=$106
!source "src/prelaunch/common.a"
;+ENABLE_ACCEL ; can't - shows title right away
lda #$60 ; hook
sta $9318
jsr $6BD1 ; decompress/title
ldy #6
- lda $100-1,y
sta $280-1,y ; move hook to $280
dey
bne -
lda #$80
sta $3F2
lda #$02
sta $3F3
lda #$A7
sta $3F4 ; reset vector patch
jmp $6000
!if * > $1C0 {
!error "code is too large, ends at ", *
}

32
src/prelaunch/swashbuckler.a Executable file
View File

@ -0,0 +1,32 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/SWASHBUCKLER",plain
*=$106
!source "src/prelaunch/common.a"
;+ENABLE_ACCEL ; can't
lda #$60
sta $332C ; stop1
jsr $330F ; decompress
lda #$60
sta $BC81 ; stop2
jsr $BC00 ; title
ldy #6
- lda $100-1,y
sta $180-1,y ; move hook to $180
dey
bne -
lda #$80
sta $3F2 ; reset vector patch
jmp $1B34
!if * > $1C0 {
!error "code is too large, ends at ", *
}