From e88da4bf73c67b13790ffd94b80634d23bfa111a Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Fri, 29 Jul 2022 17:30:56 -0700 Subject: [PATCH 1/2] fix display of unpacked titles in SS mode --- src/constants.a | 2 +- src/ui.attract.hgr.a | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/constants.a b/src/constants.a index 1c7a8675c..33ed21086 100644 --- a/src/constants.a +++ b/src/constants.a @@ -11,7 +11,7 @@ ; ...unused... ; E000..E3FF - HGR font data ; ...unused... -; E73A..FFEB - main program code +; E730..FFEB - main program code ; FFEC..FFF9 - API functions and global constants available for main program ; code, prelaunchers, transition effects, &c. ; (LoadFileDirect, Wait/UnwaitForVBL, MockingboardStuff, MachineStatus) diff --git a/src/ui.attract.hgr.a b/src/ui.attract.hgr.a index c9267164d..7d6acd7d3 100644 --- a/src/ui.attract.hgr.a +++ b/src/ui.attract.hgr.a @@ -128,7 +128,13 @@ HGRTitleCallback @indexRecordPtr !word $FDFD ; SMC + lda $5FFD + stx $5FFD ; ensure that we won't find it again if next + ; file is really compressed + cmp #$4C ; Check if screen hole now contains a JMP + beq @noUnpack ; if so, file was not packed, so skip unpack jsr UnpackHGRTitle +@noUnpack jmp ExecuteTransitionAt6000AndWait ;------------------------------------------------------------------------------ From 07c46301ef33742f3f3e644ba505bdc9ad1d77f5 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Sun, 31 Jul 2022 12:50:56 -0700 Subject: [PATCH 2/2] fix Flobynoid cheat and anti-tamper --- src/prelaunch/flobynoid.a | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/prelaunch/flobynoid.a b/src/prelaunch/flobynoid.a index 0bed1942e..9f8694294 100644 --- a/src/prelaunch/flobynoid.a +++ b/src/prelaunch/flobynoid.a @@ -27,7 +27,15 @@ lda #2 sta $B6D7 - jsr DisableAccelerator + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #$8E ; STX + sta cheat1 + sta cheat2 + sta cheat3 + ++ jsr DisableAccelerator jsr $BBB3 jsr $B627 @@ -43,15 +51,15 @@ hook_b !pseudopc $2c8 { lda #$CE cmp $AD9 bne + - stx $AD9 ; patch - don't decrease lives +cheat1 cpx $AD9 ; SMC patch - don't decrease lives + cmp $1461 bne + - stx $1461 ; patch - don't trigger anti-cheat +cheat2 cpx $1461 ; patch - don't trigger anti-cheat + lda $1893 cmp #$EE bne + - stx $1893 ; patch - don't increase lives - lda $B088 +cheat3 cpx $1893 ; SMC patch - don't increase lives ++ lda $B088 eor #$0D bne + sta $B088 ; patch - don't trigger anti-tamper