Reset/Reboot Fixes (#168)

This commit is contained in:
frankmilliron 2020-04-27 07:22:02 -07:00 committed by GitHub
parent 01f38a6585
commit a78e1d16b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 5 deletions

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2020 by qkumba
;(c) 2020 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH/G.I.JOE",plain
@ -25,6 +25,7 @@
sta $D5A3
+
bit $C083
+LC_REBOOT
jsr DisableAccelerator
bit $C08B
jmp $D400

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2020 by qkumba
;(c) 2020 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH/MAXWELL.MANOR",plain
@ -15,6 +15,7 @@
jmp $800 ; decompress
callback
+LC_REBOOT
jsr DisableAccelerator
jmp $204B

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2020 by qkumba
;(c) 2020 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH/MINIT.MAN",plain
@ -18,6 +18,11 @@
lda #$a5
sta $B13D ; patch - don't decrease lives
+
ldx #0
stx $9E31
inx
stx $9E3C ; reset vector patch
+DISABLE_ACCEL
jmp $B700

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2020 by qkumba
;(c) 2020 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH/SPINDIZZY",plain
@ -8,9 +8,20 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
+READ_RAM1_WRITE_RAM1
+LC_REBOOT
+READ_ROM_NO_WRITE
lda #$60
sta $855
jsr $800 ; decompress
ldx #0
stx $9344
inx
stx $934F ; fix reboot
+DISABLE_ACCEL
jmp $9300

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2020 by qkumba
;(c) 2020 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH/THUNDERHEAD",plain
@ -15,6 +15,7 @@
jmp $800 ; decompress
callback
+LC_REBOOT
jsr DisableAccelerator
jmp $204B