fix Situation Critial reset vector

This commit is contained in:
Peter Ferrie 2020-08-12 13:35:20 -07:00
parent 46d05fbac9
commit cdebd6d86d

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by qkumba
;(c) 2019-2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/SITUATION.CRTCL",plain
@ -7,22 +7,27 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #<callback
sta $84E
lda #>callback
sta $84F
jmp $800 ; decompress
jmp +
callback
+ENABLE_ACCEL
jsr $BD8E
+RESET_VECTOR reset
+DISABLE_ACCEL
jmp $10DD
lda #0
rts
reset
+READ_RAM1_NO_WRITE
jmp ($FFFC)
+
lda #<callback
sta $8BF
lda #>callback
sta $8C0
jmp $800 ; decompress
!if * > $1C0 {
!error "code is too large, ends at ", *
}