mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-23 12:33:32 +00:00
better Spy vs Spy 2 reset
This commit is contained in:
parent
131218e9ef
commit
7aa0d71564
23
src/macros.a
23
src/macros.a
@ -379,6 +379,29 @@
|
|||||||
+RESET_VECTOR .addr
|
+RESET_VECTOR .addr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
!macro NEW_RESET_VECTOR_64K .addr {
|
||||||
|
lda #$2C
|
||||||
|
sta .addr
|
||||||
|
lda #$89
|
||||||
|
sta .addr+1
|
||||||
|
lda #$C0
|
||||||
|
sta .addr+2
|
||||||
|
lda #$4C ; JMP $FAA6 to reboot
|
||||||
|
sta .addr+3
|
||||||
|
lda #$A6
|
||||||
|
sta .addr+4
|
||||||
|
lda #$FA
|
||||||
|
sta .addr+5
|
||||||
|
lda #<.addr
|
||||||
|
sta $3F2
|
||||||
|
sta $FFFC
|
||||||
|
lda #>.addr
|
||||||
|
sta $3F3
|
||||||
|
sta $FFFD
|
||||||
|
eor #$A5
|
||||||
|
sta $3F4
|
||||||
|
}
|
||||||
|
|
||||||
; for 64k games on ][+ which either hang or restart
|
; for 64k games on ][+ which either hang or restart
|
||||||
; updates reset hook to reboot on ctrl-reset
|
; updates reset hook to reboot on ctrl-reset
|
||||||
!macro LC_REBOOT {
|
!macro LC_REBOOT {
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
!source "src/prelaunch/common.a"
|
!source "src/prelaunch/common.a"
|
||||||
|
|
||||||
+ENABLE_ACCEL
|
+ENABLE_ACCEL
|
||||||
+NEW_RESET_VECTOR $70
|
+NEW_RESET_VECTOR_64K $70
|
||||||
|
|
||||||
lda #$60
|
lda #$60
|
||||||
sta $DBE
|
sta $DBE
|
||||||
sta $DE2
|
sta $DE2
|
||||||
@ -19,8 +20,7 @@
|
|||||||
+ENABLE_ACCEL
|
+ENABLE_ACCEL
|
||||||
jsr $BCFC ; decompress
|
jsr $BCFC ; decompress
|
||||||
+DISABLE_ACCEL
|
+DISABLE_ACCEL
|
||||||
jsr $DE5
|
jmp $DE5
|
||||||
jmp $4000
|
|
||||||
|
|
||||||
!if * > $1C0 {
|
!if * > $1C0 {
|
||||||
!error "code is too large, ends at ", *
|
!error "code is too large, ends at ", *
|
||||||
|
Loading…
Reference in New Issue
Block a user