fix Wargle reset (#476)

overwrites $100
This commit is contained in:
frankmilliron 2022-05-28 13:13:35 -07:00 committed by GitHub
parent b03c19ecc5
commit 02c058e431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 +