From 002bec72b900b4f5306d416e86f72899095ced3b Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Sun, 8 Dec 2024 13:29:56 -0800 Subject: [PATCH] support Star Maze (#48) --- src/anti-m.a | 5 ++++- src/idsirtech.a | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 src/idsirtech.a diff --git a/src/anti-m.a b/src/anti-m.a index 9f4d765..0e2f410 100644 --- a/src/anti-m.a +++ b/src/anti-m.a @@ -267,6 +267,8 @@ Tracer bcc BeginTheBoot jsr IDAlphaBeta bcc BeginTheBoot + jsr IDSirtech + bcc BeginTheBoot ; [execution falls through here] ; [and runs anyway] @@ -346,7 +348,7 @@ StringTable !word @mainmenu @header - !text "Anti-M v2.3 by 4am 2024-08-30" + !text "Anti-M v2.4-pre by 4am 2024-12-08" !text "________________________________________",$8D !text $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D,$00 @mainmenu @@ -365,3 +367,4 @@ StringTable !src "src/idpersonal.a" !src "src/idalphabeta.a" !src "src/idsensible.a" + !src "src/idsirtech.a" diff --git a/src/idsirtech.a b/src/idsirtech.a new file mode 100644 index 0000000..c9560a1 --- /dev/null +++ b/src/idsirtech.a @@ -0,0 +1,27 @@ +; Sir-Tech tracer +; written by qkumba +; +; tested on +; - Star Maze +; +IDSirtech + lda #8 + ldx #21 + ldy #12 + jsr CompareMemory + !byte $B9,$00,$0B ;LDA $0B00,Y + !byte $99,$00,$07 ;STA $0700,Y + !byte $C8 ;INY + !byte $D0,$E5 ;BNE *-$19 + !byte $4C,$21,$04 ;JMP $0421 + bcs @exit +; replace undocumented opcode with real do-nothing + lda #$EA + sta $84B + lda #$A9 + sta $85E + sta $87C + clc + +@exit + rts