From 19f1519b1175faf70c4b55ce5c96ce68ee168ad1 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Fri, 17 May 2024 20:46:08 -0700 Subject: [PATCH] restore LC reset and IRQ vectors --- src/4cade.a | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/4cade.a b/src/4cade.a index f17b6e4..4b53ec9 100644 --- a/src/4cade.a +++ b/src/4cade.a @@ -1,5 +1,5 @@ ;license:MIT -;(c) 2018-2020 by 4am +;(c) 2018-2024 by 4am ; !cpu 6502 !to "build/LAUNCHER.SYSTEM",plain @@ -63,12 +63,20 @@ Reenter stx $3F2 ; page 3 reset vector to ($100) sei stx $3FE ; page 3 IRQ vector to ($100) + lda #Ignore + sta $FFFF cli stx $3F3 ldx #$A4 stx $3F4 + lda #Reenter + sta $FFFD RestoreStackNextTime bne SearchMode ; (SMC) not an unconditional branch because code ; might change the branch target to the next opcode