101Leafy researched the games.

Home › Super Mario Bros. 3 › Scores

Scores

The points that float up when Mario stomps an enemy and the like. The ROM keeps them in bank 7 in tens. The low bytes are at $AA67; the high bytes are at $AA74. The last index shows 1UP instead of points. The score is spawned by the code at $C467 in bank 0. Stomps and kicked shells pass it a running count. The chains below are read from that code. Which index other hits give is not traced yet.

IndexPointsPRG
1100EA67, 0EA74
2200EA68, 0EA75
3400EA69, 0EA76
4800EA6A, 0EA77
51000EA6B, 0EA78
62000EA6C, 0EA79
74000EA6D, 0EA7A
88000EA6E, 0EA7B
910000EA6F, 0EA7C
1020000EA70, 0EA7D
1140000EA71, 0EA7E
1280000EA72, 0EA7F
131UP0EA73, 0EA80

Chains

Stomps: Mario's stomp count ($05F4) plus 5 is the index shown, and the count goes up by one. $AA81 caps the count at 8. From the ninth stomp on, each one is a 1UP. The count goes back to 0 when Mario lands; the floor code at $B5B8 and $BB84 of bank 8 clears it. Enemies flagged in the table at $A091 start four indexes higher; which enemies those are is not traced yet.

Shells: each object keeps its own count ($05F5,X). Kicking a shell clears it at $CE79 and sets the shell moving, and each enemy it knocks out gives the next index. $AA98 caps the index at 13, a 1UP.

Hit123456789
Stomps in a row10020040080010002000400080001UP
One kicked shell10020040080010002000400080001UP