Goonies II, The (USA)
Goonies II, The (USA) is on a UxROM board with 131,072 bytes of program. A crawl of 6,400 steps from power-on kept 119 paths that found new code. Played back over 265,939 frames, they executed 17,460 bytes of it, 13 percent.
What the rules named
- The poll: 2
- The counting spin: 1
- The game inside the interrupt: 1
- The wait for the frame: 1
- The jump engine: 1
- The bank switch: 4
- The picture writer: 1
- The palette writers: 2
- The sprite writers: 16
- The scroll writer: 1
- The split: 1
- The sound driver: 1
- The random byte: 2
- Where two things are compared: 9
The 345 routines the runs entered
Every place the game's code was entered, by a call, an interrupt or a jump through a table. The ones a rule named come first, with what the rule saw, and their names in the listing say what they are: a poll, an engine, a drain.
| at | its name in the listing | entered by | times | what it is, and the evidence |
|---|---|---|---|---|
| $A453 (bank 2) | b2_sprites_A453 | a call | 1,650,795 | The sprite writers: frames it ran in 94,809, writes to the sprite page 1,712,500 |
| $D4D7 (bank 7) | b7_engine_D4D7 | a call | 373,113 | The jump engine: tables 18, jumps through them 373,113 |
| $C1BC (bank 7) | b7_bank_C1BC | a call | 312,759 | The bank switch: writes 312,758, in the blank 34,091, while drawing 278,667 |
| $82E8 (bank 2) | b2_sound_82E8 | a call | 199,187 | The sound driver: frames it ran in 59,218, writes 82,197 |
| $C1C0 (bank 7) | b7_bank_C1C0 | a call | 96,113 | The bank switch: writes 96,113, in the blank 41,284, while drawing 54,829 |
| $C1BE (bank 7) | b7_bank_C1BE | a call | 96,112 | The bank switch: writes 96,112, in the blank 40,402, while drawing 55,710 |
| $C07C (bank 7) | b7_nmi | each frame (NMI) | 94,634 | The game inside the interrupt: frames it ran in 95,068, frames in all 97,519, the spin is at $C072 |
| $C10E (bank 7) | b7_split_C10E | a call | 94,632 | The split: frames it ran in 94,409, scroll writes while drawing 106,536, status reads while drawing 18,790,653 |
| $D18F (bank 7) | b7_poll_D18F | a call | 94,631 | The poll: port $4016, reads a frame 16, strobes a frame 4 The poll: port $4017, reads a frame 16, strobes a frame 4 |
| $DF97 (bank 7) | b7_drain_DF97 | a call | 94,595 | The palette writers: frames it ran in 94,610, writes 9,488 The picture writer: frames it ran in 94,610, writes 378,563, in the blank 318,332, while drawing 60,231 |
| $A3CC (bank 2) | b2_sprites_A3CC | a call | 94,492 | The sprite writers: frames it ran in 94,810, writes to the sprite page 5,240,675 |
| $C0EC (bank 7) | b7_scroll_C0EC | a call | 52,175 | The scroll writer: frames it ran in 52,074, writes in the blank 104,148 |
| $C1AD (bank 7) | b7_sprites_C1AD | a call | 52,175 | The sprite writers: frames it ran in 52,074, writes to the sprite page 208,700 |
| $83BA (bank 0) | b0_compare_83BA | a call | 51,548 | Where two things are compared: instructions 2, pairs of bytes 7, bytes in all 9, times compared 73, X positions at $0058,$03A7,$03AA,$03AD, Y positions at $0059,$0336,$033E,$0340,$0341 |
| $8482 (bank 6) | b6_compare_8482 | a call | 51,133 | Where two things are compared: instructions 3, pairs of bytes 3, bytes in all 5, times compared 478, X positions at $003F,$006C,$03A7, Y positions at $0059,$033B |
| $C1A9 (bank 7) | b7_sprites_C1A9 | a call | 37,666 | The sprite writers: frames it ran in 37,545, writes to the sprite page 150,664 |
| $B092 (bank 0) | b0_compare_B092 | a call | 17,608 | Where two things are compared: instructions 4, pairs of bytes 31, bytes in all 23, times compared 13,739, X positions at $003F,$0058,$03A7,$03AA,$03AB,$03AC,$03AD,$03AE,$03AF,$03B1, Y positions at $0059,$0336,$033B,$033E,$033F,$0340,$0341,$0342,$0343,$0344,$0345,$037E |
| $CE6C (bank 7) | b7_sprites_CE6C | a call | 13,622 | The sprite writers: frames it ran in 13,622, writes to the sprite page 27,244 |
| $83A9 (bank 6) | b6_compare_83A9 | a call | 9,518 | Where two things are compared: instructions 1, pairs of bytes 1, bytes in all 2, times compared 34, Y positions at $0336,$037E |
| $8CF0 (bank 6) | b6_sprites_8CF0 | a call | 1,846 | The sprite writers: frames it ran in 1,846, writes to the sprite page 3,692 |
| $D79E (bank 7) | b7_dispatch_D79E | a table | 813 | The sprite writers: frames it ran in 813, writes to the sprite page 16 |
| $C219 (bank 7) | b7_bank_C219 | a call | 575 | The bank switch: writes 4,936, in the blank 238, while drawing 4,698 |
| $981D (bank 0) | b0_compare_981D | a call | 347 | Where two things are compared: instructions 1, pairs of bytes 7, bytes in all 6, times compared 297, X positions at $003F,$0058,$03AA,$03AB,$03AD,$03AF |
| $EF49 (bank 7) | b7_random_EF49 | a call | 252 | The random byte: frames it ran in 252, bytes $006C,$0511, rotates 4, exclusive-ors 2 |
| $D11B (bank 7) | b7_sprites_D11B | a call | 216 | The sprite writers: frames it ran in 216, writes to the sprite page 3,456 |
| $C008 (bank 7) | b7_reset | power-on | 119 | The sprite writers: frames it ran in 95,089, writes to the sprite page 29,696 |
| $CE38 (bank 7) | b7_dispatch_CE38 | a table | 107 | The sprite writers: frames it ran in 321, writes to the sprite page 107 |
| $CE53 (bank 7) | b7_dispatch_CE53 | a table | 107 | The sprite writers: frames it ran in 107, writes to the sprite page 214 |
| $EEA6 (bank 7) | b7_random_EEA6 | a call | 98 | The random byte: frames it ran in 98, bytes $006C,$0511, rotates 4, exclusive-ors 1 |
| $9581 (bank 0) | b0_dispatch_9581 | a table | 56 | Where two things are compared: instructions 1, pairs of bytes 2, bytes in all 3, times compared 36, X positions at $03A7,$03AE,$03B1 |
| $9853 (bank 0) | b0_compare_9853 | a call | 56 | Where two things are compared: instructions 1, pairs of bytes 3, bytes in all 5, times compared 56, Y positions at $0059,$0336,$0342,$0344,$0345 |
| $987D (bank 0) | b0_compare_987D | a call | 21 | Where two things are compared: instructions 1, pairs of bytes 4, bytes in all 5, times compared 24, X positions at $003F,$0058,$0366,$03AE,$03AF |
| $D81A (bank 7) | b7_sprites_D81A | a call | 18 | The sprite writers: frames it ran in 18, writes to the sprite page 72 |
| $CEE8 (bank 7) | b7_dispatch_CEE8 | a table | 9 | The sprite writers: frames it ran in 27, writes to the sprite page 27 |
| $D7FD (bank 7) | b7_sprites_D7FD | a call | 4 | The sprite writers: frames it ran in 4, writes to the sprite page 16 |
| $D96B (bank 7) | b7_sprites_D96B | a call | 4 | The sprite writers: frames it ran in 4, writes to the sprite page 4 |
| $CC81 (bank 7) | b7_palette_CC81 | a call | 3 | The palette writers: frames it ran in 1, writes 32 |
| $9868 (bank 0) | b0_compare_9868 | a call | 2 | Where two things are compared: instructions 1, pairs of bytes 1, bytes in all 2, times compared 2, Y positions at $0059,$0343 |
| $D807 (bank 7) | b7_sprites_D807 | a call | 2 | The sprite writers: frames it ran in 2, writes to the sprite page 8 |
| $EA66 (bank 7) | a call | 307,485 | ||
| $EAEC (bank 7) | a call | 285,408 | ||
| $CC77 (bank 7) | a call | 165,395 | ||
| $EE10 (bank 7) | a call | 158,791 | ||
| $F014 (bank 7) | a call | 122,614 | ||
| $817F (bank 2) | a call | 121,414 | ||
| $861F (bank 2) | a call | 109,943 | ||
| $B69C (bank 0) | a call | 103,292 | ||
| $C19A (bank 7) | a call | 95,963 | ||
| $C1F7 (bank 7) | a call | 94,671 | ||
| $8179 (bank 2) | a call | 94,552 | ||
| $CCFC (bank 7) | a call | 94,480 | ||
| $C47D (bank 7) | a call | 94,479 | ||
| $C479 (bank 7) | a call | 91,608 | ||
| $EA95 (bank 7) | a call | 71,352 | ||
| $80D8 (bank 0) | a call | 70,365 | ||
| $80CC (bank 0) | a table | 69,981 | ||
| $80E9 (bank 0) | a call | 69,981 | ||
| $99F6 (bank 0) | a call | 66,268 | ||
| $EE01 (bank 7) | a call | 59,939 | ||
| $E3B8 (bank 7) | a call | 56,694 | ||
| $E03C (bank 7) | a call | 56,574 | ||
| $E05B (bank 7) | a call | 56,574 | ||
| $E257 (bank 7) | a table | 52,560 | ||
| $E298 (bank 7) | a call | 52,560 | ||
| $8026 (bank 0) | a call | 51,548 | ||
| $80B2 (bank 6) | a call | 51,548 | ||
| $852E (bank 0) | a call | 51,548 | ||
| $9339 (bank 6) | a call | 51,548 | ||
| $B49F (bank 0) | a call | 51,548 | ||
| $B711 (bank 0) | a call | 51,548 | ||
| $E487 (bank 7) | a call | 51,548 | ||
| $E73E (bank 7) | a call | 51,548 | ||
| $F6FC (bank 7) | a call | 51,548 | ||
| $8141 (bank 6) | a call | 51,135 | ||
| $813B (bank 6) | a table | 51,133 | ||
| $8651 (bank 6) | a call | 51,133 | ||
| $8786 (bank 6) | a call | 51,133 | ||
| $E013 (bank 7) | a table | 50,581 | ||
| $9378 (bank 0) | a table | 49,261 | ||
| $863D (bank 6) | a call | 46,251 | ||
| $F548 (bank 7) | a call | 45,558 | ||
| $B2D4 (bank 0) | a call | 43,326 | ||
| $98E8 (bank 0) | a call | 41,268 | ||
| $9A0A (bank 0) | a call | 40,425 | ||
| $99CA (bank 0) | a call | 40,383 | ||
| $9922 (bank 0) | a call | 40,366 | ||
| $8978 (bank 6) | a call | 34,515 | ||
| $EE69 (bank 7) | a call | 34,004 | ||
| $8824 (bank 6) | a table | 33,592 | ||
| $990E (bank 0) | a call | 26,745 | ||
| $91AB (bank 0) | a call | 25,843 | ||
| $93AF (bank 0) | a table | 25,843 | ||
| $9942 (bank 0) | a call | 25,843 | ||
| $998D (bank 0) | a call | 25,843 | ||
| $9A1C (bank 0) | a call | 25,843 | ||
| $E4A2 (bank 7) | a call | 25,772 | ||
| $E599 (bank 7) | a call | 25,772 | ||
| $E8D1 (bank 7) | a call | 23,591 | ||
| $CE21 (bank 7) | a table | 23,254 | ||
| $8641 (bank 0) | a call | 20,156 | ||
| $85D0 (bank 0) | a call | 20,058 | ||
| $E8A0 (bank 7) | a call | 19,460 | ||
| $EB22 (bank 7) | a call | 19,460 | ||
| $93BC (bank 0) | a table | 16,267 | ||
| $910A (bank 0) | a table | 15,941 | ||
| $915A (bank 0) | a table | 14,467 | ||
| $8592 (bank 2) | a call | 14,304 | ||
| $CE81 (bank 7) | a table | 13,515 | ||
| $D1FF (bank 7) | a call | 13,180 | ||
| $E775 (bank 7) | a call | 13,080 | ||
| $E7A4 (bank 7) | a call | 13,080 | ||
| $85F7 (bank 2) | a call | 12,979 | ||
| $8AF2 (bank 6) | a table | 9,323 | ||
| $C481 (bank 7) | a call | 9,111 | ||
| $9131 (bank 0) | a table | 8,435 | ||
| $CEB4 (bank 7) | a table | 7,576 | ||
| $CF10 (bank 7) | a table | 7,568 | ||
| $8656 (bank 0) | a call | 7,415 | ||
| $8AED (bank 6) | a table | 6,376 | ||
| $CDED (bank 7) | a table | 6,115 | ||
| $B5B5 (bank 5) | a call | 6,113 | ||
| $E00B (bank 7) | a call | 6,113 | ||
| $8809 (bank 6) | a call | 5,332 | ||
| $817C (bank 2) | a call | 5,223 | ||
| $CD1E (bank 7) | a table | 4,670 | ||
| $B689 (bank 0) | a call | 3,878 | ||
| $DE81 (bank 7) | a call | 2,312 | ||
| $CDC8 (bank 7) | a table | 2,288 | ||
| $F752 (bank 7) | a call | 2,098 | ||
| $CD9B (bank 7) | a table | 1,992 | ||
| $FA29 (bank 7) | a call | 1,992 | ||
| $E7DE (bank 7) | a call | 1,972 | ||
| $CEFD (bank 7) | a table | 1,846 | ||
| $800F (bank 1) | a call | 1,808 | ||
| $8D8F (bank 1) | a call | 1,808 | ||
| $E313 (bank 7) | a table | 1,808 | ||
| $C0E4 (bank 7) | a call | 1,754 | ||
| $81E8 (bank 0) | a table | 1,656 | ||
| $822A (bank 0) | a table | 1,654 | ||
| $CD4F (bank 7) | a table | 1,577 | ||
| $81BA (bank 0) | a call | 1,545 | ||
| $84E2 (bank 0) | a call | 1,540 | ||
| $E868 (bank 7) | a call | 1,531 | ||
| $EE75 (bank 7) | a call | 1,530 | ||
| $C483 (bank 7) | a call | 1,528 | ||
| $E16F (bank 7) | a table | 1,471 | ||
| $867A (bank 0) | a call | 1,443 | ||
| $8EEB (bank 1) | a table | 1,432 | ||
| $9366 (bank 6) | a table | 1,302 | ||
| $93E3 (bank 6) | a table | 1,263 | ||
| $949B (bank 6) | a call | 1,263 | ||
| $9488 (bank 0) | a table | 1,246 | ||
| $8814 (bank 6) | a call | 1,223 | ||
| $8BE1 (bank 6) | a table | 1,220 | ||
| $C1CC (bank 7) | a call | 1,219 | ||
| $9932 (bank 0) | a call | 1,157 | ||
| $C424 (bank 7) | a call | 1,106 | ||
| $8467 (bank 0) | a call | 1,046 | ||
| $941A (bank 0) | a call | 902 | ||
| $9463 (bank 6) | a call | 783 | ||
| $8692 (bank 0) | a call | 758 | ||
| $94A0 (bank 0) | a table | 746 | ||
| $9DF7 (bank 1) | a call | 604 | ||
| $CD6D (bank 7) | a table | 603 | ||
| $9DEF (bank 1) | a call | 600 | ||
| $D626 (bank 7) | a call | 592 | ||
| $D653 (bank 7) | a call | 592 | ||
| $9393 (bank 0) | a table | 585 | ||
| $97EC (bank 0) | a call | 530 | ||
| $8161 (bank 0) | a table | 511 | ||
| $CD58 (bank 7) | a table | 485 | ||
| $F7A2 (bank 7) | a call | 460 | ||
| $F7EF (bank 7) | a call | 460 | ||
| $F9D2 (bank 7) | a call | 460 | ||
| $F9F5 (bank 7) | a call | 460 | ||
| $9563 (bank 0) | a table | 452 | ||
| $8233 (bank 0) | a table | 448 | ||
| $8609 (bank 2) | a call | 435 | ||
| $8269 (bank 0) | a table | 412 | ||
| $8325 (bank 0) | a call | 412 | ||
| $8C19 (bank 6) | a table | 372 | ||
| $C1CA (bank 7) | a call | 356 | ||
| $989C (bank 0) | a call | 347 | ||
| $C212 (bank 7) | a call | 340 | ||
| $C0DD (bank 7) | a call | 339 | ||
| $DE40 (bank 7) | a call | 334 | ||
| $81AF (bank 2) | a call | 332 | ||
| $D227 (bank 7) | a call | 331 | ||
| $E7B4 (bank 7) | a call | 308 | ||
| $8029 (bank 6) | a call | 272 | ||
| $89B0 (bank 6) | a call | 262 | ||
| $D50B (bank 7) | a call | 253 | ||
| $DE42 (bank 7) | a call | 244 | ||
| $DDFE (bank 7) | a call | 231 | ||
| $E344 (bank 7) | a call | 206 | ||
| $E132 (bank 7) | a call | 205 | ||
| $8F3F (bank 1) | a table | 204 | ||
| $9106 (bank 1) | a call | 204 | ||
| $928E (bank 1) | a table | 196 | ||
| $A17B (bank 1) | a call | 196 | ||
| $98E1 (bank 0) | a call | 195 | ||
| $98DA (bank 0) | a call | 182 | ||
| $E187 (bank 7) | a table | 180 | ||
| $E658 (bank 7) | a call | 168 | ||
| $8BAE (bank 6) | a table | 158 | ||
| $952F (bank 0) | a table | 156 | ||
| $911E (bank 0) | a table | 138 | ||
| $865F (bank 0) | a call | 132 | ||
| $E2C0 (bank 7) | a table | 132 | ||
| $8680 (bank 0) | a call | 131 | ||
| $8F5E (bank 1) | a table | 126 | ||
| $CBA3 (bank 7) | a call | 119 | ||
| $D1FA (bank 7) | a call | 119 | ||
| $C0D3 (bank 7) | a call | 116 | ||
| $ED9F (bank 7) | a call | 111 | ||
| $8000 (bank 6) | a call | 110 | ||
| $E32E (bank 7) | a call | 104 | ||
| $E0F5 (bank 7) | a call | 103 | ||
| $E124 (bank 7) | a call | 103 | ||
| $EB69 (bank 7) | a call | 103 | ||
| $EBAB (bank 7) | a call | 103 | ||
| $EC40 (bank 7) | a call | 103 | ||
| $ECBF (bank 7) | a call | 103 | ||
| $ECE6 (bank 7) | a call | 103 | ||
| $ED0D (bank 7) | a call | 103 | ||
| $ED34 (bank 7) | a call | 103 | ||
| $ED8D (bank 7) | a call | 103 | ||
| $E1DA (bank 7) | a call | 102 | ||
| $81AF (bank 0) | a call | 100 | ||
| $E07D (bank 7) | a table | 100 | ||
| $E099 (bank 7) | a call | 100 | ||
| $E0ED (bank 7) | a table | 99 | ||
| $84E9 (bank 0) | a call | 98 | ||
| $B628 (bank 0) | a call | 98 | ||
| $B6A5 (bank 0) | a call | 98 | ||
| $E1B3 (bank 7) | a table | 98 | ||
| $E202 (bank 7) | a call | 98 | ||
| $EE84 (bank 7) | a call | 98 | ||
| $F4B4 (bank 7) | a call | 98 | ||
| $938A (bank 0) | a table | 97 | ||
| $D467 (bank 7) | a call | 96 | ||
| $E952 (bank 7) | a call | 96 | ||
| $EB4C (bank 7) | a call | 96 | ||
| $CECC (bank 7) | a table | 94 | ||
| $D413 (bank 7) | a call | 94 | ||
| $89FF (bank 6) | a table | 92 | ||
| $B305 (bank 0) | a call | 85 | ||
| $A8A7 (bank 0) | a table | 82 | ||
| $94DB (bank 0) | a table | 80 | ||
| $B1FC (bank 0) | a call | 79 | ||
| $EC2A (bank 7) | a call | 79 | ||
| $A956 (bank 0) | a table | 78 | ||
| $9217 (bank 0) | a call | 75 | ||
| $E323 (bank 7) | a table | 62 | ||
| $E151 (bank 7) | a table | 60 | ||
| $916B (bank 0) | a call | 56 | ||
| $985D (bank 0) | a call | 56 | ||
| $DA0C (bank 7) | a call | 54 | ||
| $81E0 (bank 0) | a table | 45 | ||
| $8D20 (bank 6) | a call | 43 | ||
| $8E33 (bank 6) | a call | 43 | ||
| $99A8 (bank 0) | a call | 42 | ||
| $D971 (bank 7) | a call | 36 | ||
| $DB1C (bank 7) | a call | 36 | ||
| $DB6C (bank 7) | a call | 36 | ||
| $82B5 (bank 0) | a table | 32 | ||
| $B306 (bank 0) | a call | 28 | ||
| $B48E (bank 0) | a call | 28 | ||
| $DB69 (bank 7) | a call | 28 | ||
| $D531 (bank 7) | a call | 26 | ||
| $D559 (bank 7) | a call | 26 | ||
| $8DE8 (bank 1) | a table | 24 | ||
| $E816 (bank 7) | a call | 24 | ||
| $9887 (bank 0) | a call | 21 | ||
| $823A (bank 2) | a call | 20 | ||
| $913C (bank 0) | a table | 20 | ||
| $D591 (bank 7) | a table | 18 | ||
| $D5C3 (bank 7) | a table | 18 | ||
| $D5F7 (bank 7) | a table | 18 | ||
| $D69C (bank 7) | a table | 18 | ||
| $D6CB (bank 7) | a table | 18 | ||
| $D6FA (bank 7) | a table | 18 | ||
| $D729 (bank 7) | a table | 18 | ||
| $D734 (bank 7) | a table | 18 | ||
| $D73A (bank 7) | a table | 18 | ||
| $D74C (bank 7) | a call | 18 | ||
| $D760 (bank 7) | a table | 18 | ||
| $D895 (bank 7) | a call | 18 | ||
| $D982 (bank 7) | a call | 18 | ||
| $D99F (bank 7) | a call | 18 | ||
| $DA73 (bank 7) | a call | 18 | ||
| $E625 (bank 7) | a call | 16 | ||
| $8002 (bank 2) | a call | 10 | ||
| $8481 (bank 0) | a call | 10 | ||
| $A14C (bank 1) | a call | 10 | ||
| $DDE5 (bank 7) | a call | 9 | ||
| $9DB1 (bank 1) | a call | 8 | ||
| $CD37 (bank 7) | a table | 8 | ||
| $8000 (bank 1) | a call | 6 | ||
| $8257 (bank 0) | a call | 6 | ||
| $8DDF (bank 1) | a table | 6 | ||
| $8E0F (bank 1) | a table | 6 | ||
| $8E34 (bank 1) | a table | 6 | ||
| $92B4 (bank 1) | a table | 6 | ||
| $9579 (bank 0) | a table | 6 | ||
| $9B9E (bank 1) | a call | 6 | ||
| $A152 (bank 1) | a call | 6 | ||
| $A348 (bank 1) | a call | 6 | ||
| $E7F6 (bank 7) | a call | 6 | ||
| $8247 (bank 0) | a table | 4 | ||
| $93F7 (bank 0) | a call | 4 | ||
| $949A (bank 0) | a table | 4 | ||
| $A158 (bank 1) | a call | 4 | ||
| $A8B3 (bank 0) | a table | 4 | ||
| $B67F (bank 0) | a call | 4 | ||
| $B6FA (bank 0) | a call | 4 | ||
| $CF1C (bank 7) | a table | 4 | ||
| $D879 (bank 7) | a table | 4 | ||
| $D885 (bank 7) | a call | 4 | ||
| $E139 (bank 7) | a table | 4 | ||
| $CC70 (bank 7) | a call | 3 | ||
| $CF8C (bank 7) | a call | 3 | ||
| $D22F (bank 7) | a call | 3 | ||
| $81FA (bank 0) | a table | 2 | ||
| $82DC (bank 0) | a call | 2 | ||
| $8DBD (bank 1) | a table | 2 | ||
| $9009 (bank 1) | a table | 2 | ||
| $912D (bank 0) | a call | 2 | ||
| $92BC (bank 1) | a table | 2 | ||
| $92CB (bank 1) | a table | 2 | ||
| $9DE3 (bank 1) | a call | 2 | ||
| $9E0F (bank 1) | a call | 2 | ||
| $A15E (bank 1) | a call | 2 | ||
| $A356 (bank 1) | a call | 2 | ||
| $B575 (bank 5) | a call | 2 | ||
| $CD72 (bank 7) | a table | 2 | ||
| $CD79 (bank 7) | a table | 2 | ||
| $CD86 (bank 7) | a call | 2 | ||
| $DE1C (bank 7) | a call | 2 | ||
| $E308 (bank 7) | a call | 2 | ||
| $EC1A (bank 7) | a call | 2 | ||
| $FA7C (bank 7) | a call | 2 | ||
| $81ED (bank 2) | a call | 1 | ||
| $CC61 (bank 7) | a call | 1 | ||
| $D167 (bank 7) | a table | 1 |
Where it waits
Loops a rule named that sit inside a routine and are not themselves a place the code is entered.
| at | its name in the listing | what it is, and the evidence |
|---|---|---|
| $8696 (bank 6) | b6_wait_8696 | The wait for the frame: waits on the byte at $03A2, times entered 2,727, turns 102, writes of it under the frame interrupt 49, frames in all 97,519 |
| $C072 (bank 7) | b7_spin_C072 | The counting spin: counts in the byte at $000F, turns 112,106,245, turns a frame 1,149, reads of it from outside the loop 2,066 |
The tables it jumps through
A table of addresses the game picks one from. Some sit right after a call to a jump engine; others are anywhere in the cartridge, and we find them by where the address the game jumped through was loaded from. Some games jump by pushing an address and returning to it, and some keep a table as two, the low bytes of its addresses in one place and the high bytes in another; both are found the same way. An entry is counted as far as the runs saw one taken; the true table may be longer. The last column is the byte of memory whose value picked the entry, where we could follow it: the game's mode, or what one of its objects is doing.
| at | reached | entries | taken | chosen by the byte at |
|---|---|---|---|---|
| $8046 (bank 0) | after a call | 58 | 9 | $03CF, $03CE, $03D1, $03D0 |
| $80CA (bank 0) | by a return | 1 | 1 | |
| $81F6 (bank 0) | after a call | 2 | 2 | $03EF |
| $8241 (bank 0) | after a call | 3 | 3 | $03EF |
| $9110 (bank 0) | after a call | 4 | 4 | $03F4, $03F2, $03F3 |
| $937E (bank 0) | after a call | 6 | 6 | $03F3, $03F2, $03F5, $03F4 |
| $948E (bank 0) | after a call | 6 | 6 | $03F7, $03F6 |
| $9569 (bank 0) | after a call | 4 | 4 | $03F8, $03F6, $03F9 |
| $A8AD (bank 0) | after a call | 2 | 2 | $03F2, $03F3 |
| $8DA3 (bank 1) | after a call | 9 | 9 | $0052 |
| $910B (bank 1) | after a call | 4 | 3 | $0054 |
| $92C1 (bank 1) | after a call | 1 | 1 | $0029 |
| $810B (bank 6) | after a call | 8 | 7 | $03EA, $03A2 |
| $8139 (bank 6) | by a return | 1 | 1 | |
| $9356 (bank 6) | after a call | 2 | 1 | $03C7 |
| $9364 (bank 6) | by a return | 1 | 1 | |
| $CD0C (bank 7) | after a call | 7 | 7 | $0000 |
| $CD27 (bank 7) | after a call | 8 | 8 | $0001 |
| $CE26 (bank 7) | after a call | 7 | 7 | $0001 |
| $D579 (bank 7) | after a call | 12 | 12 | $049E |
| $E026 (bank 7) | after a call | 11 | 11 | $001C |
The memory its routines share
854 bytes of memory were written by one routine and read by another, and 62 places were reached through an index, which is what a table or a set of object slots in memory looks like.
Reaches through an index: those that hold positions, then the longest
| from | bytes reached | instructions | positions it holds |
|---|---|---|---|
| $000E | 145 | 2 | 2 across, 1 down |
| $035A | 18 | 34 | 1 across |
| $0336 | 18 | 31 | 10 down |
| $03A2 | 16 | 12 | 8 across |
| $037E | 14 | 26 | 2 down |
| $006C | 2 | 2 | 1 across |
| $0700 | 256 | 82 | |
| $0200 | 253 | 5 | |
| $0201 | 253 | 2 | |
| $0202 | 253 | 1 | |
| $0203 | 253 | 1 | |
| $0000 | 240 | 11 |
What travels with a position
Arrays that at least two routines step through together with an array of positions, across the same range. That is what a table of the things on the screen looks like in memory: one array for each property, one slot for each thing. We can say which arrays hold positions, which of the others get added into them, which is what a speed does, which pick the way through a jump table, which is what a state or a kind does, and which are only ever counted down, which is what a timer does. What the rest hold is not named yet.
| slots | arrays | routines | positions across | positions down | added into them | choosing a jump | counted down | travelling with them |
|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 2 | $006C | $0004, $0006 | ||||
| 18 | 23 | 51 | $035A, $03A2 | $0336, $037E | $0390, $047A, $048C | $03C6, $03EA, $049E | $0348, $03FC, $0432, $0444, $0468, $049E | $0300, $0312, $0324, $0348, $036C, $0390, $03B4, $03C6, $03D8, $03EA, $03FC, $040E, $0432, $0444, $0456, $0468, $047A, $048C, $049E |
The 24 busiest shared bytes
| byte | reads and writes | routines writing | routines reading |
|---|---|---|---|
| $000F | 217,535,057 | 3 | 6 |
| $0002 | 113,197,040 | 3 | 6 |
| $006D | 8,576,459 | 6 | 6 |
| $006F | 8,246,906 | 6 | 6 |
| $0068 | 6,277,524 | 6 | 6 |
| $0071 | 6,077,225 | 6 | 6 |
| $006A | 6,014,917 | 6 | 6 |
| $0070 | 5,962,764 | 6 | 6 |
| $0069 | 5,635,731 | 6 | 6 |
| $006B | 5,054,346 | 6 | 6 |
| $0038 | 3,362,803 | 6 | 6 |
| $00AB | 1,491,718 | 3 | 6 |
| $006C | 1,197,238 | 6 | 6 |
| $006E | 1,154,295 | 6 | 6 |
| $00AC | 1,145,157 | 3 | 4 |
| $00BA | 977,464 | 3 | 5 |
| $0075 | 947,116 | 6 | 6 |
| $000D | 930,679 | 6 | 6 |
| $007B | 818,728 | 6 | 4 |
| $007D | 801,717 | 6 | 6 |
| $0078 | 793,894 | 6 | 6 |
| $0017 | 721,934 | 3 | 3 |
| $0003 | 711,992 | 2 | 6 |
| $007C | 686,356 | 6 | 6 |
This page shows none of the game's bytes. The listing these figures were read from stays with the cartridge.