season/minischedule.s

Download file

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

1| Mini:seven divisional rounds; eighth stored column is legacy/padding only.2    .include "features.inc"3| +0 pick:d0 club,d2 round -> d3 opponent (a1 scratch).4| +4 list:d5 round,a2 list -> d6 count30/N clear, or -1/N set for legacy.5| Scratch:d0,d1,d3,a0. The caller uses its established all30-team legacy fallback.6    .text7    .globl _start8_start:9    bra.w pick10    bra.w fixtures11pick:12    move.w %d0,%d313    lsl.w #3,%d314    add.w %d2,%d315    lea mini_schedule(%pc),%a116    move.b (%a1,%d3.w),%d317    andi.w #255,%d318    rts19fixtures:20    lea mini_schedule(%pc),%a021    cmpi.w #MINI_GAMES,%d522    bcc.s legacy_fixture23    moveq #0,%d024    move.b 0xFFFFC331,%d025    move.w %d0,%d326    lsl.w #3,%d327    add.w %d5,%d328    move.b (%a0,%d3.w),%d329    cmp.b 0xFFFFC333,%d330    bne.s legacy_fixture31    moveq #0,%d632    moveq #0,%d033next_team:34    move.w %d0,%d335    lsl.w #3,%d336    add.w %d5,%d337    moveq #0,%d138    move.b (%a0,%d3.w),%d139    cmp.w %d1,%d040    bhs.s skip41    cmp.b 0xFFFFC331,%d042    beq.s skip43    cmp.b 0xFFFFC333,%d044    beq.s skip45    move.b %d0,(%a2,%d6.w)46    addq.w #1,%d647    move.b %d1,(%a2,%d6.w)48    addq.w #1,%d649skip:50    addq.w #1,%d051    cmpi.w #32,%d052    bcs.s next_team53    rts54legacy_fixture:                          | old captured/already-running match outside the new schedule55    moveq #-1,%d6                       | N set: caller retains legacy 30-team simulation56    rts57    .include "minisched.inc"58