experimental/team_ovr.s

Download file

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

1| Presentation keeps the native club rating scale (EDM94), with the change2| in actual roster mean applied after transfers. No price/player/stat writes.3| Internal2580EE still returns the actual player mean for its own engine users.4 .text5 .globl _start6_start:7 jsr 0x2580EE8 tst.w %d09 bmi.w done                       | ordinary/no transfer: native original club lookup10 move.w %sr,-(%sp)11 movem.l %d1-%d7/%a0-%a1,-(%sp)12 move.w %d0,%d6                    | current canonical roster's base-player mean13 moveq #0,%d714 move.w 0x28(%a2),%d715 cmpi.w #31,%d716 bhi.s invalid17 move.w %d7,%d118 mulu.w #52,%d119 lea 0x238020,%a0                  | immutable original canonical transfer roster20 adda.w %d1,%a021 lea 0x239EC0,%a1                  | unchanged base player overall catalogue22 moveq #0,%d423 moveq #0,%d524 moveq #25,%d325base_loop:26 moveq #0,%d127 move.w (%a0)+,%d128 cmpi.w #0xFFFF,%d129 beq.s base_sum_done30 cmpi.w #831,%d131 bhi.s invalid32 moveq #0,%d233 move.b (%a1,%d1.w),%d234 add.w %d2,%d535 addq.w #1,%d436 dbra %d3,base_loop37base_sum_done:38 tst.w %d439 beq.s invalid40 divu.w %d4,%d541 sub.w %d5,%d6                    | current floor(mean) - original floor(mean)42 lea 0x1E92B4,%a0                  | exact original32-team presentation grades43 moveq #0,%d044 move.b (%a0,%d7.w),%d045 add.w %d6,%d046 bpl.s nonnegative47 moveq #0,%d048nonnegative:49 cmpi.w #99,%d050 bls.s restored51 moveq #99,%d0                    | native two-digit rating limit52 bra.s restored53invalid:54 moveq #-1,%d055restored:56 movem.l (%sp)+,%d1-%d7/%a0-%a157 move.w (%sp)+,%sr58done:59 tst.w %d060 rts61 .ascii "OVM2"62