From 02c058e431104fb7bede212b340fcdb17f6bb297 Mon Sep 17 00:00:00 2001 From: frankmilliron <34376619+frankmilliron@users.noreply.github.com> Date: Sat, 28 May 2022 13:13:35 -0700 Subject: [PATCH] fix Wargle reset (#476) overwrites $100 --- src/prelaunch/wargle.a | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/prelaunch/wargle.a b/src/prelaunch/wargle.a index 7f9ba45a1..8594f2582 100644 --- a/src/prelaunch/wargle.a +++ b/src/prelaunch/wargle.a @@ -1,5 +1,5 @@ ;license:MIT -;(c) 2021 by qkumba +;(c) 2021-22 by qkumba, Frank M. !cpu 6502 !to "build/PRELAUNCH.INDEXED/WARGLE",plain @@ -43,8 +43,14 @@ main callback1 ldx #$00 stx $9E52 - inx + ldx #$03 stx $9E53 ; reset vector + ldx #5 +- lda $100,x + sta $300,x + dex + bpl - + +GET_MACHINE_STATUS and #CHEATS_ENABLED beq +