support Odin (#28)

This commit is contained in:
Peter Ferrie 2020-08-11 18:02:04 -07:00 committed by GitHub
parent 542ae06761
commit ef4f60166d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 2 deletions

View File

@ -6,7 +6,7 @@
;-------------------------------
; Anti-M
; a 4am hack
; (c) 2019 by 4am
; (c) 2019-2020 by 4am
;
; Permission is hereby granted, free of charge, to any
; person obtaining a copy of this software and associated
@ -187,6 +187,8 @@ Tracer
bcc BeginTheBoot
jsr IDProgame
bcc BeginTheBoot
jsr IDAlphaBeta
bcc BeginTheBoot
; [execution falls through here]
; [and runs anyway]
@ -253,7 +255,7 @@ StringTable
!word @mainmenu
@header
!text "Anti-M v1.6 by 4am 2019-11-09"
!text "Anti-M v1.7 by 4am 2020-08-11"
!text "________________________________________",$8D
!text $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D,$00
@mainmenu
@ -270,3 +272,4 @@ StringTable
!src "src/idprodos.a"
!src "src/idprogame.a"
!src "src/idpersonal.a"
!src "src/idalphabeta.a"

37
src/idalphabeta.a Normal file
View File

@ -0,0 +1,37 @@
; Alpha-Beta tracer
; written by qkumba
;
; tested on
; - Odin
;
IDAlphaBeta
lda #8
ldx #1
ldy #15
jsr CompareMemory
!byte $48 ;PHA
!byte $28 ;PLP
!byte $8C,$F4,$03 ;STY $03F4
!byte $2C,$81,$C0 ;BIT $C081
!byte $2C,$81,$C0 ;BIT $C081
!byte $98 ;TYA
!byte $99,$08,$FF ;STA $FF08,Y
bcs @exit
; patch code to offer magic values
lda #$A9 ;LDA
sta $833
sta $83B
sta $841
ldx #$FA
stx $834
lda #$EA
sta $835
sta $83D
sta $843
inx
stx $83C
lda #3
sta $842
@exit
rts