mirror of
https://github.com/a2-4am/anti-m.git
synced 2024-06-15 08:29:33 +00:00
support Odin (#28)
This commit is contained in:
parent
542ae06761
commit
ef4f60166d
|
@ -6,7 +6,7 @@
|
||||||
;-------------------------------
|
;-------------------------------
|
||||||
; Anti-M
|
; Anti-M
|
||||||
; a 4am hack
|
; a 4am hack
|
||||||
; (c) 2019 by 4am
|
; (c) 2019-2020 by 4am
|
||||||
;
|
;
|
||||||
; Permission is hereby granted, free of charge, to any
|
; Permission is hereby granted, free of charge, to any
|
||||||
; person obtaining a copy of this software and associated
|
; person obtaining a copy of this software and associated
|
||||||
|
@ -187,6 +187,8 @@ Tracer
|
||||||
bcc BeginTheBoot
|
bcc BeginTheBoot
|
||||||
jsr IDProgame
|
jsr IDProgame
|
||||||
bcc BeginTheBoot
|
bcc BeginTheBoot
|
||||||
|
jsr IDAlphaBeta
|
||||||
|
bcc BeginTheBoot
|
||||||
; [execution falls through here]
|
; [execution falls through here]
|
||||||
; [and runs anyway]
|
; [and runs anyway]
|
||||||
|
|
||||||
|
@ -253,7 +255,7 @@ StringTable
|
||||||
!word @mainmenu
|
!word @mainmenu
|
||||||
|
|
||||||
@header
|
@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
|
||||||
!text $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D,$00
|
!text $8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D,$00
|
||||||
@mainmenu
|
@mainmenu
|
||||||
|
@ -270,3 +272,4 @@ StringTable
|
||||||
!src "src/idprodos.a"
|
!src "src/idprodos.a"
|
||||||
!src "src/idprogame.a"
|
!src "src/idprogame.a"
|
||||||
!src "src/idpersonal.a"
|
!src "src/idpersonal.a"
|
||||||
|
!src "src/idalphabeta.a"
|
||||||
|
|
37
src/idalphabeta.a
Normal file
37
src/idalphabeta.a
Normal 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
|
Loading…
Reference in New Issue
Block a user