support Star Maze (#48)

This commit is contained in:
Peter Ferrie 2024-12-08 13:29:56 -08:00 committed by GitHub
parent 9d678ba019
commit 002bec72b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 1 deletions

View File

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

27
src/idsirtech.a Normal file
View File

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