experimental/goalie_anticipation.s

Download file

Release 2026-11-04-r2 · SHA256 a1af74f7f4d9e2d540c35bc95110ebadf40506dc34239245bf45b3f245a9d06a · Click a line number for a direct link.

1| Recover a CPU keeper's stale lateral-save hold while a carrier crosses him.2| Enter only through the existing recovery-lock branch; ordinary frames unchanged.3| Keep real loose-shot/catch saves, manual control and native physics unchanged.4 .text5 .globl _start6_start:7 move.w %sr,-(%sp)8 movem.l %d0-%d1/%a0,-(%sp)9 cmpi.w #8,0x5C(%a3)10 ble.w done11 tst.w 0x34(%a3)12 bne.w done13 move.b 0xFFFFC2EA,%d014 andi.b #0x11,%d015 bne.w done16 btst #7,0xFFFFC2EC17 bne.w done18 move.b 0xFFFFC2FA,%d019 andi.b #5,%d020 bne.w done21 btst #3,0x62(%a3)22 bne.w done23 btst #5,0x62(%a3)24 bne.w done25 move.w 0x58(%a3),%d026 cmpi.w #0x250,%d027 beq.s phase28 cmpi.w #0x2A2,%d029 bne.w done30phase:31 cmpi.w #4,0x5A(%a3)32 bne.w done33 move.w 0xFFFFB7AA,%d034 cmpi.w #11,%d035 bhi.w done36 lsl.w #7,%d037 lea 0xFFFFB04A,%a038 adda.w %d0,%a039 tst.w 0x34(%a0)40 beq.w done41 btst #2,0x63(%a0)42 bne.w done43 move.b 0x62(%a0),%d044 move.b 0x62(%a3),%d145 eor.b %d1,%d046 btst #6,%d047 beq.s done48 move.w (%a3),%d049 beq.s done50 bmi.s left51 cmpi.w #-512,0x28(%a0)52 bgt.s done53 bra.s shorten54left:55 cmpi.w #512,0x28(%a0)56 blt.s done57shorten:58 move.w #8,0x5C(%a3)59 clr.b 0x40(%a3)60done:61 movem.l (%sp)+,%d0-%d1/%a062 move.w (%sp)+,%sr63 jmp 0x1546464