The score calculating algorithm for 110m hurdles is functionally the same as the 100m one, it's just the tiers/thresholds/multipliers that differ slightly.
No score for times of 24.00 or above
For times between 13.00 and 23.99 : ((23 - whole seconds) * 1000) + ((100 - subseconds) * 10)
For times between 12.00 and 12.99 : (11 * 1000) + ((100 - subseconds) * 20)
For times less than 12.00 : (whole seconds less than 12 * 2000) + (11 * 1000) + ((100 - subseconds) * 20)
Just the high jump algorithm left now, which looks to be the most complex of them all.
[font="Courier New, Courier, mono"]; 110m hurdles score calculating routine[/font]
[font="Courier New, Courier, mono"]; core logic is the same as 100m routine with slightly different tiers/thresholds/multipliers[/font]
[font="Courier New, Courier, mono"];[/font]
[font="Courier New, Courier, mono"]; score is calculated as follows :-[/font]
[font="Courier New, Courier, mono"]; no score for times of 24.00 or above[/font]
[font="Courier New, Courier, mono"]; for times between 13.00 and 23.99 : ((23 - whole seconds) * 1000) + ((100 - subseconds) * 10)[/font]
[font="Courier New, Courier, mono"]; for times between 12.00 and 12.99 : (11 * 1000) + ((100 - subseconds) * 20)[/font]
[font="Courier New, Courier, mono"]; for times less than 12.00 : (whole seconds less than 12 * 2000) + (11 * 1000) + ((100 - subseconds) * 20)[/font]
[font="Courier New, Courier, mono"];[/font]
[font="Courier New, Courier, mono"]D426: A6 26 LDA ,Y ; get tens of seconds (BCD value)[/font]
[font="Courier New, Courier, mono"]D428: C6 22 LDB #$0A[/font]
[font="Courier New, Courier, mono"]D42A: 3D MUL ; multiply by 10, store result in B[/font]
[font="Courier New, Courier, mono"]D42B: EB 09 ADDB $1,Y ; add BCD seconds value to B[/font]
[font="Courier New, Courier, mono"]D42D: D7 D9 STB $51 ; store whole seconds result at $2851[/font]
[font="Courier New, Courier, mono"]D42F: C1 3A CMPB #$18 ; compare with 24[/font]
[font="Courier New, Courier, mono"]D431: 24 C8 BCC $D47D ; branch if B >= 24 (no score if time is greater than 24.00)[/font]
[font="Courier New, Courier, mono"]D433: C6 35 LDB #$17 ; B = 23[/font]
[font="Courier New, Courier, mono"]D435: D0 D3 SUBB $51 ; subtract whole seconds from 23, storing result in B[/font]
[font="Courier New, Courier, mono"]D437: C1 23 CMPB #$0B ; compare result with a value of 11[/font]
[font="Courier New, Courier, mono"]D439: 25 82 BCS $D445 ; branch if whole seconds are > 12[/font]
[font="Courier New, Courier, mono"]
[/font]
[font="Courier New, Courier, mono"]; player's time is less than 13.00 seconds[/font]
[font="Courier New, Courier, mono"]D43B: 86 23 LDA #$0B ; A = 11[/font]
[font="Courier New, Courier, mono"]D43D: 97 DA STA $52 ; store at $2852 (init the loop counter)[/font]
[font="Courier New, Courier, mono"]D43F: C0 29 SUBB #$0B ; subtract 11 from B[/font]
[font="Courier New, Courier, mono"]D441: D7 D1 STB $53 ; store result at $2853 (number of whole seconds less than 12)[/font]
[font="Courier New, Courier, mono"]D443: 20 26 BRA $D449 ; unconditional branch[/font]
[font="Courier New, Courier, mono"]
[/font]
[font="Courier New, Courier, mono"]; player's time is between 13.00 and 23.99[/font]
[font="Courier New, Courier, mono"]D445: D7 D0 STB $52 ; store (23 - player's seconds) at $2852 (init the loop counter)[/font]
[font="Courier New, Courier, mono"]D447: 0F 7B CLR $53 ; clear $2853 to zero[/font]
[font="Courier New, Courier, mono"]
[/font]
[font="Courier New, Courier, mono"]D449: 96 DA LDA $52 ; get (23 - player's seconds)[/font]
[font="Courier New, Courier, mono"]D44B: 27 3A BEQ $D45F ; branch if zero (no whole second multiplier for times between 23.00 and 23.99)[/font]
[font="Courier New, Courier, mono"]D44D: CE 54 F4 LDU #$DC7C ; point U at the score lookup table (1000 points)[/font]
[font="Courier New, Courier, mono"]D450: BD F7 96 JSR $D514 ; calculate score for (23 - whole seconds)[/font]
[font="Courier New, Courier, mono"]D453: 96 71 LDA $53 ; get number of whole seconds less than 12 seconds[/font]
[font="Courier New, Courier, mono"]D455: 97 D0 STA $52 ; store at $2852 (init the loop counter)[/font]
[font="Courier New, Courier, mono"]D457: 27 2E BEQ $D45F ; branch if it's zero (no enhanced multipler if time was not under 12 seconds)[/font]
[font="Courier New, Courier, mono"]D459: CE 54 F6 LDU #$DC7E ; point U at the score lookup table (2000 points)[/font]
[font="Courier New, Courier, mono"]D45C: BD FD 9C JSR $D514 ; calculate score for whole seconds less than 12[/font]
[font="Courier New, Courier, mono"]
[/font]
[font="Courier New, Courier, mono"]; now calculate score for subseconds[/font]
[font="Courier New, Courier, mono"]D45F: A6 00 LDA $2,Y ; get tenths (BCD value)[/font]
[font="Courier New, Courier, mono"]D461: C6 88 LDB #$0A[/font]
[font="Courier New, Courier, mono"]D463: 3D MUL ; multiply by 10, store result in B[/font]
[font="Courier New, Courier, mono"]D464: EB 01 ADDB $3,Y ; add BCD hundredths[/font]
[font="Courier New, Courier, mono"]D466: D7 D2 STB $50 ; store result at $2850[/font]
[font="Courier New, Courier, mono"]D468: 86 4C LDA #$64 ; A = 100[/font]
[font="Courier New, Courier, mono"]D46A: 90 D8 SUBA $50 ; subtract subseconds from 100, store result in A[/font]
[font="Courier New, Courier, mono"]D46C: 97 7A STA $52 ; store at $2852 (init the loop counter)[/font]
[font="Courier New, Courier, mono"]D46E: CE 54 50 LDU #$DC72 ; point U at the score lookup table (20 points)[/font]
[font="Courier New, Courier, mono"]D471: 96 D3 LDA $51 ; get whole seconds from player's finishing time[/font]
[font="Courier New, Courier, mono"]D473: 81 2F CMPA #$0D ; compare with 13[/font]
[font="Courier New, Courier, mono"]D475: 25 81 BCS $D47A ; branch if player's finishing time was less than 13.00 seconds[/font]
[font="Courier New, Courier, mono"]D477: CE F4 58 LDU #$DC70 ; else point U at the score lookup table (10 points)[/font]
[font="Courier New, Courier, mono"]D47A: BD 5D 3C JSR $D514 ; calculate the score for subseconds[/font]
[font="Courier New, Courier, mono"]D47D: 39 RTS [/font]