mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-02 22:31:17 +00:00
More and more reset vector fixes
This commit is contained in:
parent
df679103bb
commit
bf5ab4b94f
16
src/prelaunch/captn.goodnight.a
Executable file
16
src/prelaunch/captn.goodnight.a
Executable file
@ -0,0 +1,16 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/CAPTN.GOODNIGHT",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
inc $3f4 ; reset vector patch
|
||||
; (overwrites LC so reboot)
|
||||
jmp $800
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
8
src/prelaunch/crisis.mountain.a
Normal file → Executable file
8
src/prelaunch/crisis.mountain.a
Normal file → Executable file
@ -8,9 +8,17 @@
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$4c
|
||||
sta $B75B
|
||||
lda #0
|
||||
sta $B75C
|
||||
lda #1
|
||||
sta $B75D ; reset vector patch
|
||||
|
||||
lda #$60
|
||||
sta $207b
|
||||
jsr $2000 ; decompress
|
||||
|
||||
+GET_MACHINE_STATUS
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
|
2
src/prelaunch/crossfire.a
Normal file → Executable file
2
src/prelaunch/crossfire.a
Normal file → Executable file
@ -21,6 +21,8 @@
|
||||
lda #$00
|
||||
sta $4786 ; patch - don't decrease lives
|
||||
+
|
||||
lda #1
|
||||
sta $4D8F ; reset vector patch
|
||||
+DISABLE_ACCEL
|
||||
jmp $4000
|
||||
|
||||
|
2
src/prelaunch/drelbs.a
Normal file → Executable file
2
src/prelaunch/drelbs.a
Normal file → Executable file
@ -17,6 +17,8 @@
|
||||
lda #$a5
|
||||
sta $1cb0 ; patch - don't decrease lives
|
||||
+
|
||||
inc $3F4 ; reset vector patch
|
||||
; trashes LC, so reboot
|
||||
+DISABLE_ACCEL
|
||||
jmp $8000
|
||||
|
||||
|
23
src/prelaunch/intl.gran.prix.a
Executable file
23
src/prelaunch/intl.gran.prix.a
Executable file
@ -0,0 +1,23 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/INTL.GRAN.PRIX",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
lda #$60 ; RTS instead of JMP
|
||||
sta $201A
|
||||
jsr $2000 ; decompress
|
||||
|
||||
lda #0
|
||||
sta $6010
|
||||
lda #1
|
||||
sta $6015 ; reset vector patch
|
||||
|
||||
jmp $6000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
6
src/prelaunch/joust.a
Normal file → Executable file
6
src/prelaunch/joust.a
Normal file → Executable file
@ -23,6 +23,12 @@
|
||||
sta $2bc9
|
||||
sta $2b6b
|
||||
+
|
||||
lda #$4C
|
||||
sta $A3DC
|
||||
lda #0
|
||||
sta $A3DD
|
||||
lda #1
|
||||
sta $A3DE ; reset vector patch
|
||||
+DISABLE_ACCEL
|
||||
jmp $3e00
|
||||
|
||||
|
23
src/prelaunch/juggler.a
Executable file
23
src/prelaunch/juggler.a
Executable file
@ -0,0 +1,23 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/JUGGLER",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
|
||||
ldy #6
|
||||
- lda $100-1,y
|
||||
sta $180-1,y ; move hook to $180
|
||||
dey
|
||||
bne -
|
||||
lda #$80
|
||||
sta $3F2 ; reset vector patch
|
||||
|
||||
jmp $3FF5
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
67
src/prelaunch/mr.do.a
Normal file → Executable file
67
src/prelaunch/mr.do.a
Normal file → Executable file
@ -7,51 +7,52 @@
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+USES_TEXT_PAGE_2
|
||||
clc
|
||||
bcc cheat3
|
||||
+USES_TEXT_PAGE_2
|
||||
inc $3F4 ; reboot on reset
|
||||
clc
|
||||
bcc cheat3
|
||||
|
||||
cheat2
|
||||
jsr $20d
|
||||
jsr $20d
|
||||
|
||||
cheat64
|
||||
lda #$a5
|
||||
sta $1da7
|
||||
sta $9bf
|
||||
rts
|
||||
lda #$a5
|
||||
sta $1da7
|
||||
sta $9bf
|
||||
rts
|
||||
|
||||
cheat1
|
||||
ldy #<cheat2
|
||||
sty $209
|
||||
ldy #>cheat2
|
||||
sty $20a
|
||||
bne $19e
|
||||
ldy #<cheat2
|
||||
sty $209
|
||||
ldy #>cheat2
|
||||
sty $20a
|
||||
bne $19e
|
||||
|
||||
cheat3
|
||||
lda #$60
|
||||
sta $83f
|
||||
jsr $800
|
||||
lda $847
|
||||
beq cheat48
|
||||
lda #$60
|
||||
sta $d15
|
||||
jsr $ce8
|
||||
lda #<cheat4
|
||||
sta $d137
|
||||
lda #>cheat4
|
||||
sta $d138
|
||||
jmp $d100
|
||||
lda #$60
|
||||
sta $83f
|
||||
jsr $800
|
||||
lda $847
|
||||
beq cheat48
|
||||
lda #$60
|
||||
sta $d15
|
||||
jsr $ce8
|
||||
lda #<cheat4
|
||||
sta $d137
|
||||
lda #>cheat4
|
||||
sta $d138
|
||||
jmp $d100
|
||||
|
||||
cheat4
|
||||
jsr $d13b
|
||||
jmp cheat64
|
||||
jsr $d13b
|
||||
jmp cheat64
|
||||
|
||||
cheat48
|
||||
lda #<cheat1
|
||||
sta $1040
|
||||
lda #>cheat1
|
||||
sta $1041
|
||||
jmp $1000
|
||||
lda #<cheat1
|
||||
sta $1040
|
||||
lda #>cheat1
|
||||
sta $1041
|
||||
jmp $1000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
27
src/prelaunch/night.stalker.a
Executable file
27
src/prelaunch/night.stalker.a
Executable file
@ -0,0 +1,27 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/NIGHT.STALKER",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $6017
|
||||
jsr $800 ; decompress
|
||||
jsr $2A8 ; part 2
|
||||
|
||||
lda #$A6
|
||||
sta $6491
|
||||
lda #$FA
|
||||
sta $6496 ; reset vector patch (reboot)
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $283
|
||||
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
24
src/prelaunch/orileys.mine.a
Executable file
24
src/prelaunch/orileys.mine.a
Executable file
@ -0,0 +1,24 @@
|
||||
;license:MIT
|
||||
;(c) 2019 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/ORILEYS.MINE",plain
|
||||
*=$106
|
||||
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
lda #$60
|
||||
sta $81D
|
||||
jsr $800 ; decompress
|
||||
|
||||
lda #1
|
||||
sta $2006
|
||||
sta $201B ; reset vector patch
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $8FD
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
}
|
11
src/prelaunch/pac.man.a
Normal file → Executable file
11
src/prelaunch/pac.man.a
Normal file → Executable file
@ -8,7 +8,16 @@
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+USES_TEXT_PAGE_2
|
||||
jmp $800
|
||||
lda #$60
|
||||
sta $813
|
||||
jsr $800 ; decompress
|
||||
|
||||
lda #0
|
||||
sta $103F
|
||||
lda #1
|
||||
sta $104A ; reset vector patch
|
||||
|
||||
jmp $1000
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
Loading…
Reference in New Issue
Block a user