Legend of Zelda, The (USA) (Rev 1)
Legend of Zelda, The (USA) (Rev 1) is on a MMC1 board with 131,072 bytes of program. A crawl of 6,400 steps from power-on kept 110 paths that found new code. Played back over 289,730 frames, they executed 14,209 bytes of it, 11 percent.
What the rules named
- The poll: 2
- The idle spin: 1
- The game inside the interrupt: 1
- The jump engine: 1
- The bank switch: 6
- The picture writer: 1
- The palette writers: 1
- The sprite writers: 26
- The scroll writer: 1
- The split: 1
- The sound driver: 1
- The random byte: 1
- Where two things are compared: 6
The 304 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 |
|---|---|---|---|---|
| $FFAC (bank 7) | b7_bank_FFAC | a call | 560,164 | The bank switch: writes 2,800,806, in the blank 583,600, while drawing 2,217,206 |
| $E5E2 (bank 7) | b7_engine_E5E2 | a call | 305,104 | The jump engine: tables 20, jumps through them 305,104 |
| $A0F6 (bank 6) | b6_drain_A0F6 | a call | 112,849 | The palette writers: frames it ran in 112,849, writes 39,580 The picture writer: frames it ran in 112,849, writes 649,576, in the blank 498,236, while drawing 151,340 |
| $E484 (bank 7) | b7_nmi | each frame (NMI) | 112,849 | The game inside the interrupt: frames it ran in 113,961, frames in all 119,210, the spin is at $E45B The random byte: frames it ran in 113,961, bytes $0018,$0019,$001A, rotates 3, exclusive-ors 2 The scroll writer: frames it ran in 113,961, writes in the blank 379,599 |
| $9C67 (bank 0) | b0_sound_9C67 | a call | 112,720 | The sound driver: frames it ran in 112,720, writes 610,770 |
| $E62D (bank 7) | b7_poll_E62D | a call | 110,688 | The poll: port $4017, reads a frame 17, strobes a frame 6 |
| $E640 (bank 7) | b7_poll_E640 | a call | 110,688 | The poll: port $4016, reads a frame 17, strobes a frame 4 |
| $E70E (bank 7) | b7_sprites_E70E | a call | 86,774 | The sprite writers: frames it ran in 14,219, writes to the sprite page 421,468 |
| $98F5 (bank 2) | b2_sprites_98F5 | a call | 81,528 | The sprite writers: frames it ran in 27,176, writes to the sprite page 1,304,448 |
| $8094 (bank 4) | b4_compare_8094 | a call | 30,679 | Where two things are compared: instructions 4, pairs of bytes 10, bytes in all 11, times compared 1,335, X positions at $0070,$0071,$0072,$0073,$0074,$0525, Y positions at $0084,$0085,$0086,$0087,$0088,$0525 |
| $9943 (bank 2) | b2_sprites_9943 | a call | 27,176 | The sprite writers: frames it ran in 27,176, writes to the sprite page 434,816 |
| $F23C (bank 7) | b7_sprites_F23C | a call | 19,874 | The sprite writers: frames it ran in 19,874, writes to the sprite page 687 |
| $986B (bank 2) | b2_sprites_986B | a call | 18,784 | The sprite writers: frames it ran in 18,784, writes to the sprite page 2,103,808 |
| $E5F7 (bank 7) | b7_sprites_E5F7 | a call | 18,067 | The sprite writers: frames it ran in 18,067, writes to the sprite page 1,156,288 |
| $88F8 (bank 4) | b4_dispatch_88F8 | a table | 15,692 | Where two things are compared: instructions 1, pairs of bytes 4, bytes in all 5, times compared 70, X positions at $0070,$0071,$0072,$0073,$0074 |
| $9EF0 (bank 2) | b2_dispatch_9EF0 | a table | 13,114 | The sprite writers: frames it ran in 13,181, writes to the sprite page 11,688 |
| $A1C3 (bank 2) | b2_sprites_A1C3 | a call | 13,047 | The sprite writers: frames it ran in 13,047, writes to the sprite page 24,735 |
| $A1DD (bank 2) | b2_sprites_A1DD | a call | 13,047 | The sprite writers: frames it ran in 13,047, writes to the sprite page 24,735 |
| $A204 (bank 2) | b2_sprites_A204 | a call | 13,047 | The sprite writers: frames it ran in 13,047, writes to the sprite page 615 |
| $A59A (bank 2) | b2_dispatch_A59A | a table | 8,668 | The sprite writers: frames it ran in 8,668, writes to the sprite page 34,084 |
| $F9C9 (bank 7) | b7_sprites_F9C9 | a call | 7,099 | The sprite writers: frames it ran in 2,353, writes to the sprite page 56,792 |
| $97D8 (bank 2) | b2_sprites_97D8 | a call | 4,682 | The sprite writers: frames it ran in 4,682, writes to the sprite page 18,728 |
| $97EA (bank 2) | b2_sprites_97EA | a call | 3,130 | The sprite writers: frames it ran in 913, writes to the sprite page 64,432 |
| $8521 (bank 5) | b5_split_8521 | a call | 2,136 | The split: frames it ran in 2,182, scroll writes while drawing 1,496, status reads while drawing 1,307,588 |
| $841E (bank 5) | b5_sprites_841E | a call | 2,115 | The sprite writers: frames it ran in 2,115, writes to the sprite page 83 |
| $BF98 (bank 5) | b5_bank_BF98 | a call | 2,078 | The bank switch: writes 10,390, in the blank 0, while drawing 10,390 |
| $82D7 (bank 4) | b4_dispatch_82D7 | a table | 2,015 | The sprite writers: frames it ran in 1,590, writes to the sprite page 7,496 |
| $81DD (bank 5) | b5_compare_81DD | a call | 1,923 | Where two things are compared: instructions 1, pairs of bytes 1, bytes in all 2, times compared 240, X positions at $0000,$0070 |
| $BFAC (bank 2) | b2_bank_BFAC | a call | 1,039 | The bank switch: writes 5,195, in the blank 0, while drawing 5,195 |
| $BFAC (bank 5) | b5_bank_BFAC | a call | 1,039 | The bank switch: writes 5,195, in the blank 0, while drawing 5,195 |
| $80D4 (bank 5) | b5_dispatch_80D4 | a table | 514 | The sprite writers: frames it ran in 514, writes to the sprite page 4 |
| $B726 (bank 5) | b5_sprites_B726 | a call | 514 | The sprite writers: frames it ran in 514, writes to the sprite page 4,112 |
| $8CE4 (bank 5) | b5_dispatch_8CE4 | a table | 494 | The sprite writers: frames it ran in 494, writes to the sprite page 202 |
| $F238 (bank 7) | b7_sprites_F238 | a call | 489 | The sprite writers: frames it ran in 299, writes to the sprite page 39 |
| $8130 (bank 5) | b5_sprites_8130 | a call | 445 | The sprite writers: frames it ran in 445, writes to the sprite page 445 |
| $8A04 (bank 5) | b5_compare_8A04 | a call | 415 | Where two things are compared: instructions 2, pairs of bytes 8, bytes in all 9, times compared 219, X positions at $0070,$0071,$0072,$0073,$0074,$0525, Y positions at $0084,$0087,$0088,$0525 |
| $FF98 (bank 7) | b7_bank_FF98 | a call | 251 | The bank switch: writes 1,255, in the blank 550, while drawing 705 |
| $8D17 (bank 5) | b5_dispatch_8D17 | a table | 228 | The sprite writers: frames it ran in 228, writes to the sprite page 732 |
| $B31A (bank 4) | b4_compare_B31A | a call | 221 | Where two things are compared: instructions 2, pairs of bytes 8, bytes in all 10, times compared 442, X positions at $0070,$0071,$0072,$0073,$0074, Y positions at $0084,$0085,$0086,$0087,$0088 |
| $8755 (bank 4) | b4_dispatch_8755 | a table | 110 | Where two things are compared: instructions 3, pairs of bytes 10, bytes in all 11, times compared 232, X positions at $0070,$0071,$0072,$0073,$0074,$0525, Y positions at $0084,$0085,$0086,$0087,$0088,$0525 |
| $EB76 (bank 7) | b7_dispatch_EB76 | a table | 110 | The sprite writers: frames it ran in 110, writes to the sprite page 104 |
| $FF50 (bank 7) | b7_reset | power-on | 110 | The bank switch: writes 990, in the blank 990, while drawing 0 |
| $A18E (bank 2) | b2_sprites_A18E | a call | 81 | The sprite writers: frames it ran in 81, writes to the sprite page 1,132 |
| $810F (bank 5) | b5_dispatch_810F | a table | 77 | The sprite writers: frames it ran in 77, writes to the sprite page 1 |
| $83B2 (bank 5) | b5_sprites_83B2 | a call | 46 | The sprite writers: frames it ran in 46, writes to the sprite page 184 |
| $A351 (bank 2) | a call | 599,865 | ||
| $FE98 (bank 7) | a call | 234,162 | ||
| $A42B (bank 2) | a call | 222,285 | ||
| $B821 (bank 5) | a call | 198,420 | ||
| $9C50 (bank 0) | a call | 194,500 | ||
| $FA93 (bank 7) | a call | 169,766 | ||
| $9F7C (bank 0) | a call | 160,529 | ||
| $A080 (bank 6) | a call | 112,849 | ||
| $9825 (bank 0) | a call | 112,739 | ||
| $98CC (bank 0) | a call | 112,739 | ||
| $99A0 (bank 0) | a call | 112,720 | ||
| $9AD3 (bank 0) | a call | 112,720 | ||
| $9B83 (bank 0) | a call | 112,720 | ||
| $F0AC (bank 7) | a call | 108,177 | ||
| $EB30 (bank 7) | a call | 108,127 | ||
| $FB74 (bank 7) | a call | 70,970 | ||
| $9020 (bank 2) | a table | 56,456 | ||
| $90CF (bank 2) | a call | 56,148 | ||
| $903B (bank 2) | a table | 56,129 | ||
| $EFD0 (bank 7) | a call | 50,213 | ||
| $F0E3 (bank 7) | a call | 49,990 | ||
| $F92A (bank 7) | a call | 38,980 | ||
| $87D3 (bank 4) | a call | 30,679 | ||
| $8BFF (bank 4) | a table | 30,679 | ||
| $98C3 (bank 2) | a call | 27,176 | ||
| $A1F7 (bank 2) | a call | 23,376 | ||
| $FA3C (bank 7) | a call | 22,966 | ||
| $EC1B (bank 7) | a table | 20,555 | ||
| $B1E6 (bank 5) | a call | 20,548 | ||
| $B7C8 (bank 5) | a call | 19,835 | ||
| $B3F4 (bank 5) | a call | 19,694 | ||
| $E78A (bank 7) | a call | 19,541 | ||
| $8D96 (bank 5) | a call | 19,534 | ||
| $8DCF (bank 5) | a call | 19,534 | ||
| $B29A (bank 5) | a call | 19,534 | ||
| $E6EA (bank 7) | a call | 19,534 | ||
| $E7FE (bank 7) | a call | 19,534 | ||
| $EDA0 (bank 7) | a call | 19,534 | ||
| $86E0 (bank 4) | a call | 19,490 | ||
| $F36F (bank 7) | a call | 19,490 | ||
| $F4A0 (bank 7) | a call | 19,490 | ||
| $F73E (bank 7) | a call | 19,490 | ||
| $F769 (bank 7) | a call | 19,490 | ||
| $8F85 (bank 5) | a call | 19,311 | ||
| $A13E (bank 1) | a call | 19,311 | ||
| $AABF (bank 5) | a call | 19,008 | ||
| $AAF1 (bank 5) | a call | 19,008 | ||
| $95AC (bank 2) | a table | 18,806 | ||
| $979D (bank 2) | a call | 17,129 | ||
| $960C (bank 2) | a table | 16,781 | ||
| $972A (bank 2) | a call | 16,781 | ||
| $EDF4 (bank 7) | a call | 13,808 | ||
| $8F5A (bank 4) | a call | 13,724 | ||
| $8EEB (bank 4) | a table | 13,252 | ||
| $A011 (bank 2) | a call | 11,756 | ||
| $A591 (bank 2) | a table | 8,815 | ||
| $9B79 (bank 2) | a table | 8,392 | ||
| $95C1 (bank 2) | a table | 7,970 | ||
| $9C09 (bank 0) | a call | 7,594 | ||
| $9F72 (bank 0) | a call | 7,499 | ||
| $EDFA (bank 7) | a call | 7,218 | ||
| $FA0C (bank 7) | a call | 7,099 | ||
| $9EE2 (bank 0) | a call | 6,948 | ||
| $8A03 (bank 4) | a call | 6,195 | ||
| $8A11 (bank 4) | a call | 6,195 | ||
| $B2CD (bank 4) | a call | 5,974 | ||
| $8A21 (bank 4) | a call | 5,925 | ||
| $FA89 (bank 7) | a call | 5,393 | ||
| $9BFF (bank 0) | a call | 5,283 | ||
| $9C27 (bank 0) | a call | 5,078 | ||
| $9C3B (bank 0) | a call | 4,967 | ||
| $EBAA (bank 7) | a table | 4,934 | ||
| $E8F8 (bank 7) | a call | 4,612 | ||
| $E625 (bank 7) | a call | 4,254 | ||
| $9EDC (bank 0) | a call | 4,195 | ||
| $9C1D (bank 0) | a call | 3,893 | ||
| $95EC (bank 2) | a table | 3,849 | ||
| $8424 (bank 5) | a call | 2,115 | ||
| $EB62 (bank 7) | a table | 2,115 | ||
| $A8DE (bank 5) | a call | 2,078 | ||
| $84A4 (bank 5) | a table | 1,923 | ||
| $8506 (bank 5) | a call | 1,923 | ||
| $EB86 (bank 7) | a table | 1,808 | ||
| $FAA0 (bank 7) | a call | 1,487 | ||
| $8371 (bank 4) | a call | 1,445 | ||
| $F08D (bank 7) | a call | 1,445 | ||
| $A307 (bank 2) | a call | 1,379 | ||
| $FAAE (bank 7) | a call | 1,143 | ||
| $B3A9 (bank 5) | a call | 1,132 | ||
| $82A8 (bank 5) | a call | 1,122 | ||
| $E9A1 (bank 7) | a table | 1,122 | ||
| $EEE4 (bank 7) | a call | 1,122 | ||
| $E96F (bank 7) | a table | 1,078 | ||
| $A924 (bank 5) | a call | 1,070 | ||
| $96DD (bank 2) | a call | 1,041 | ||
| $973A (bank 2) | a call | 1,041 | ||
| $B559 (bank 5) | a call | 1,021 | ||
| $8006 (bank 5) | a call | 994 | ||
| $9D2A (bank 2) | a call | 955 | ||
| $831F (bank 5) | a table | 916 | ||
| $E94B (bank 7) | a table | 602 | ||
| $E9D8 (bank 7) | a table | 594 | ||
| $A35D (bank 2) | a call | 589 | ||
| $E47D (bank 7) | a call | 543 | ||
| $E580 (bank 7) | a call | 543 | ||
| $B5EB (bank 5) | a call | 514 | ||
| $B5EF (bank 5) | a call | 514 | ||
| $B6A7 (bank 5) | a call | 514 | ||
| $A3E1 (bank 2) | a call | 511 | ||
| $8F0E (bank 4) | a table | 472 | ||
| $9FDE (bank 2) | a call | 472 | ||
| $8D6D (bank 5) | a table | 463 | ||
| $A4C4 (bank 2) | a table | 462 | ||
| $E46D (bank 7) | a call | 433 | ||
| $F1A0 (bank 7) | a call | 406 | ||
| $E9C3 (bank 7) | a table | 405 | ||
| $A223 (bank 1) | a call | 397 | ||
| $F149 (bank 7) | a call | 397 | ||
| $8070 (bank 5) | a table | 361 | ||
| $B282 (bank 5) | a call | 361 | ||
| $E6CE (bank 7) | a call | 355 | ||
| $804F (bank 2) | a call | 327 | ||
| $B000 (bank 4) | a call | 325 | ||
| $F855 (bank 7) | a call | 318 | ||
| $F1AF (bank 7) | a table | 309 | ||
| $A2A0 (bank 2) | a table | 308 | ||
| $E679 (bank 7) | a call | 306 | ||
| $B0E1 (bank 5) | a call | 301 | ||
| $8929 (bank 5) | a call | 299 | ||
| $9830 (bank 2) | a table | 293 | ||
| $EA3D (bank 7) | a call | 292 | ||
| $8A4D (bank 4) | a call | 270 | ||
| $B39F (bank 4) | a call | 270 | ||
| $B83A (bank 5) | a call | 248 | ||
| $A437 (bank 2) | a call | 243 | ||
| $80D7 (bank 6) | a call | 241 | ||
| $8A2F (bank 5) | a table | 238 | ||
| $8D60 (bank 5) | a table | 235 | ||
| $8D84 (bank 1) | a call | 218 | ||
| $E608 (bank 7) | a call | 212 | ||
| $EBA1 (bank 7) | a call | 210 | ||
| $AC07 (bank 5) | a call | 205 | ||
| $B05E (bank 5) | a call | 204 | ||
| $8D05 (bank 5) | a table | 186 | ||
| $877B (bank 5) | a table | 178 | ||
| $8D00 (bank 1) | a call | 176 | ||
| $8CB6 (bank 5) | a table | 154 | ||
| $905D (bank 2) | a table | 154 | ||
| $A47F (bank 2) | a table | 154 | ||
| $A4BD (bank 2) | a table | 154 | ||
| $A51E (bank 2) | a table | 154 | ||
| $AC10 (bank 5) | a call | 154 | ||
| $AC16 (bank 5) | a call | 154 | ||
| $8015 (bank 4) | a table | 150 | ||
| $8832 (bank 4) | a call | 150 | ||
| $B179 (bank 4) | a call | 150 | ||
| $FEB3 (bank 7) | a call | 150 | ||
| $FEBB (bank 7) | a call | 150 | ||
| $A5DF (bank 2) | a table | 147 | ||
| $EA51 (bank 7) | a call | 147 | ||
| $EBC0 (bank 7) | a table | 146 | ||
| $83D7 (bank 5) | a call | 136 | ||
| $A3C8 (bank 2) | a call | 134 | ||
| $A764 (bank 2) | a call | 134 | ||
| $8091 (bank 3) | a call | 132 | ||
| $80DC (bank 3) | a call | 132 | ||
| $E977 (bank 7) | a table | 131 | ||
| $94E7 (bank 2) | a table | 128 | ||
| $B68D (bank 5) | a call | 115 | ||
| $808C (bank 6) | a call | 110 | ||
| $80C6 (bank 6) | a call | 110 | ||
| $9512 (bank 2) | a table | 110 | ||
| $9545 (bank 2) | a table | 110 | ||
| $B4AC (bank 5) | a call | 110 | ||
| $B4E8 (bank 5) | a call | 110 | ||
| $E45E (bank 7) | a call | 110 | ||
| $A8C4 (bank 5) | a call | 108 | ||
| $A9F4 (bank 5) | a call | 108 | ||
| $AB30 (bank 5) | a call | 108 | ||
| $8941 (bank 5) | a call | 102 | ||
| $896E (bank 5) | a call | 102 | ||
| $90B8 (bank 5) | a call | 102 | ||
| $B0B6 (bank 5) | a call | 102 | ||
| $B366 (bank 5) | a call | 102 | ||
| $EA6B (bank 7) | a table | 102 | ||
| $EAD3 (bank 7) | a call | 102 | ||
| $EDD7 (bank 7) | a call | 102 | ||
| $833D (bank 5) | a table | 79 | ||
| $8044 (bank 3) | a call | 66 | ||
| $8047 (bank 6) | a table | 66 | ||
| $805E (bank 3) | a call | 66 | ||
| $80A4 (bank 6) | a call | 66 | ||
| $8484 (bank 5) | a call | 66 | ||
| $B000 (bank 5) | a table | 66 | ||
| $B009 (bank 5) | a table | 66 | ||
| $B010 (bank 5) | a table | 66 | ||
| $B016 (bank 5) | a table | 66 | ||
| $B01D (bank 5) | a table | 66 | ||
| $B02A (bank 5) | a table | 66 | ||
| $B036 (bank 5) | a table | 66 | ||
| $E9F7 (bank 7) | a table | 66 | ||
| $EA00 (bank 7) | a call | 66 | ||
| $EA11 (bank 7) | a table | 66 | ||
| $8070 (bank 6) | a table | 65 | ||
| $80B5 (bank 6) | a call | 65 | ||
| $8109 (bank 6) | a call | 65 | ||
| $EB96 (bank 7) | a table | 65 | ||
| $F1C3 (bank 7) | a table | 63 | ||
| $983C (bank 2) | a table | 57 | ||
| $A0F0 (bank 2) | a call | 53 | ||
| $848C (bank 5) | a call | 51 | ||
| $E85A (bank 7) | a call | 51 | ||
| $82BB (bank 5) | a table | 44 | ||
| $830E (bank 5) | a table | 44 | ||
| $83C2 (bank 5) | a call | 44 | ||
| $B07A (bank 5) | a table | 44 | ||
| $B464 (bank 5) | a call | 44 | ||
| $B522 (bank 5) | a table | 44 | ||
| $E68F (bank 7) | a call | 44 | ||
| $EADD (bank 7) | a call | 44 | ||
| $835C (bank 5) | a table | 39 | ||
| $8439 (bank 5) | a table | 39 | ||
| $8492 (bank 5) | a table | 39 | ||
| $84BA (bank 5) | a table | 38 | ||
| $84DF (bank 5) | a table | 38 | ||
| $B560 (bank 5) | a call | 38 | ||
| $82FB (bank 5) | a call | 35 | ||
| $F1D0 (bank 7) | a call | 32 | ||
| $873F (bank 4) | a table | 28 | ||
| $847E (bank 5) | a table | 26 | ||
| $8A13 (bank 5) | a call | 19 | ||
| $902E (bank 5) | a call | 19 | ||
| $9573 (bank 2) | a table | 18 | ||
| $959A (bank 2) | a table | 18 | ||
| $84E8 (bank 5) | a table | 12 | ||
| $EBA3 (bank 7) | a call | 12 | ||
| $9FC5 (bank 2) | a table | 9 | ||
| $8600 (bank 5) | a table | 8 | ||
| $8038 (bank 5) | a table | 7 | ||
| $8057 (bank 5) | a table | 7 | ||
| $805E (bank 5) | a table | 7 | ||
| $8062 (bank 5) | a table | 7 | ||
| $806C (bank 5) | a table | 7 | ||
| $819A (bank 5) | a table | 7 | ||
| $8CA6 (bank 5) | a table | 7 | ||
| $8CAB (bank 5) | a table | 7 | ||
| $8CC8 (bank 5) | a table | 7 | ||
| $8CCD (bank 5) | a table | 7 | ||
| $8CD2 (bank 5) | a table | 7 | ||
| $8CDB (bank 5) | a table | 7 | ||
| $9D42 (bank 0) | a call | 7 | ||
| $8D0B (bank 5) | a table | 6 | ||
| $8283 (bank 5) | a call | 4 | ||
| $EA2B (bank 7) | a call | 4 | ||
| $A017 (bank 2) | a call | 2 | ||
| $F1DA (bank 7) | a table | 2 | ||
| $8E0A (bank 5) | a call | 1 | ||
| $8E26 (bank 5) | a call | 1 | ||
| $8E42 (bank 5) | 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 |
|---|---|---|
| $E45B (bank 7) | b7_spin_E45B | The idle spin: turns 837,334,170, turns a frame 7,024 |
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 |
|---|---|---|---|---|
| $900E (bank 2) | after a call | 3 | 3 | $042D |
| $901A (bank 2) | after a call | 3 | 3 | $042D |
| $9035 (bank 2) | after a call | 3 | 3 | $0013 |
| $90DA (bank 2) | after a call | 2 | 2 | $042D |
| $90E4 (bank 2) | after a call | 5 | 5 | $042D |
| $A292 (bank 2) | after a call | 7 | 5 | $0013 |
| $A596 (bank 2) | after a call | 2 | 2 | $0013 |
| $8024 (bank 5) | after a call | 10 | 9 | $00E1 |
| $82AD (bank 5) | after a call | 6 | 5 | $0013 |
| $8429 (bank 5) | after a call | 7 | 7 | $0013 |
| $8C8C (bank 5) | after a call | 13 | 13 | $0013 |
| $8E30 (bank 5) | after a call | 1 | 1 | $0656 |
| $8043 (bank 6) | after a call | 2 | 2 | $0013 |
| $E923 (bank 7) | after a call | 4 | 11 | $0012, $0016 |
| $E9E5 (bank 7) | after a call | 2 | 9 | $0013 |
| $F1A7 (bank 7) | after a call | 4 | 4 | $0395, $0396, $0398, $0397 |
The memory its routines share
1,373 bytes of memory were written by one routine and read by another, and 64 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 |
|---|---|---|---|
| $0000 | 240 | 7 | 1 across |
| $0070 | 11 | 26 | 1 across |
| $0084 | 11 | 26 | 5 down |
| $0071 | 8 | 1 | 4 across |
| $0201 | 253 | 6 | |
| $0200 | 253 | 5 | |
| $0202 | 253 | 3 | |
| $0203 | 253 | 3 | |
| $0560 | 128 | 1 | |
| $01FF | 113 | 1 | |
| $0302 | 52 | 12 | |
| $0530 | 48 | 5 |
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 |
|---|---|---|---|---|---|---|---|---|
| 11 | 8 | 22 | $0070 | $0084 | $0028, $00C0 | $0019, $0028, $0098, $00AC, $00C0, $049E |
The 24 busiest shared bytes
| byte | reads and writes | routines writing | routines reading |
|---|---|---|---|
| $0000 | 33,376,884 | 6 | 6 |
| $0001 | 14,727,916 | 6 | 6 |
| $00F8 | 11,975,698 | 4 | 6 |
| $0002 | 10,458,697 | 6 | 6 |
| $0003 | 7,383,726 | 6 | 6 |
| $000E | 2,145,533 | 6 | 6 |
| $0004 | 2,139,124 | 6 | 6 |
| $000F | 1,916,708 | 6 | 6 |
| $0005 | 1,241,791 | 6 | 6 |
| $0084 | 1,001,845 | 6 | 6 |
| $0007 | 998,727 | 6 | 6 |
| $0340 | 873,837 | 3 | 4 |
| $000A | 842,258 | 6 | 6 |
| $00C1 | 826,181 | 5 | 6 |
| $6E2C | 801,249 | 2 | 3 |
| $000B | 745,284 | 6 | 6 |
| $0070 | 713,170 | 6 | 6 |
| $00FA | 700,778 | 1 | 4 |
| $0341 | 663,346 | 4 | 6 |
| $0006 | 636,854 | 6 | 6 |
| $000D | 628,586 | 6 | 6 |
| $0015 | 558,214 | 2 | 6 |
| $00C2 | 554,489 | 6 | 6 |
| $00AC | 550,012 | 6 | 6 |
This page shows none of the game's bytes. The listing these figures were read from stays with the cartridge.