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
|
||||
}
|
||||
|
||||
!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
|
||||
; updates reset hook to reboot on ctrl-reset
|
||||
!macro LC_REBOOT {
|
||||
|
@ -8,7 +8,8 @@
|
||||
!source "src/prelaunch/common.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
+NEW_RESET_VECTOR $70
|
||||
+NEW_RESET_VECTOR_64K $70
|
||||
|
||||
lda #$60
|
||||
sta $DBE
|
||||
sta $DE2
|
||||
@ -19,8 +20,7 @@
|
||||
+ENABLE_ACCEL
|
||||
jsr $BCFC ; decompress
|
||||
+DISABLE_ACCEL
|
||||
jsr $DE5
|
||||
jmp $4000
|
||||
jmp $DE5
|
||||
|
||||
!if * > $1C0 {
|
||||
!error "code is too large, ends at ", *
|
||||
|
Loading…
Reference in New Issue
Block a user