|
coastline 0.0.4
|
Matching status of Top Gear Rally. A routine matches when the compiler of the original compiles its source to the words of the original, with the fields that relocations fill masked. The compiler is IDO 5.3 for the three Nintendo 64 releases (the game at -O2, libultra at -O1, -O2, or -O3) and MSVC 5.0 for the two PC libraries. Assembly sources are assembled and compared the same way. A routine whose words differ only in the numbers of registers is listed apart (🟡). It does not match, and its source still differs from the original. A routine the scan does not reach is unknown (❔). Each measured routine lists matching instruction bytes (four per instruction after relocation masking) and their share of its original length. Matching functions shows exact matches / targeted functions and the percentage. Matching code bytes shows matching bytes / all targeted code bytes and the percentage. Routines without a scan contribute zero matching bytes. A release without a scan has unknown matching bytes.
Routines the compiler or the linker supplies are excluded, as are zlib (open-source code vendored under 3rdparty) and the PIF ROM (the console boot ROM, not part of the cartridge). The N64 SDK (libultra) and the IPL3 boot code are counted.
Run the matching scan under .wiswa-ci/tools for each release (--region us, eu, and jp), then regenerate the report with the Ghidra project open and the HTTP bridge running. The scan of the PC libraries with MSVC 5.0 does not exist yet, and their routines are unknown until it writes matching-brd3d.json and matching-brglide.json.
| Release | Compiler | Matching functions | Registers only | Not matching | Unknown | Matching code bytes |
|---|---|---|---|---|---|---|
| usa.z64 | IDO 5.3 | 774/774 (100.0%) | 0 | 0 | 0 | 436,848/436,848 (100.0%) |
| eur.z64 | IDO 5.3 | 792/792 (100.0%) | 0 | 0 | 0 | 444,904/444,904 (100.0%) |
| jpn.z64 | IDO 5.3 | 795/795 (100.0%) | 0 | 0 | 0 | 443,596/443,596 (100.0%) |
| BRD3D.dll | MSVC 5.0 | Unknown | 0 | 0 | 1,573 | Unknown |
| BRGlide.dll | MSVC 5.0 | Unknown | 0 | 0 | 1,441 | Unknown |
The programs are usa.z64, eur.z64, jpn.z64, compiled by IDO 5.3. A routine counts by the result of the first program that has it.
| Measure | Count |
|---|---|
| Functions in the programs | 836 |
| Excluded as Exception vector (copied from the SDK exception preamble at run time) | 1 |
| Excluded as IPL3 boot code (copied from the cartridge by the ROM builder) | 7 |
| Excluded as PIF ROM (console boot ROM, not part of the cartridge) | 5 |
| Excluded as zlib (provided by open-source zlib, vendored when modified) | 27 |
| To match | 796 |
| Only in EUR | 1 |
| Only in JPN | 4 |
| Component | Matching functions | Registers only | Not matching | Unknown | Matching code bytes |
|---|---|---|---|---|---|
| Game code | 588/588 (100.0%) | 0 | 0 | 0 | 383,468/383,468 (100.0%) |
| SDK (libultra) | 208/208 (100.0%) | 0 | 0 | 0 | 59,944/59,944 (100.0%) |
The programs are BRD3D.dll, BRGlide.dll, compiled by MSVC 5.0. A routine counts by the result of the first program that has it.
| Measure | Count |
|---|---|
| Functions in the programs | 2,155 |
| Excluded as C runtime (MSVC runtime library) | 336 |
| Excluded as Compiler-generated (static initialisers, atexit registrations, deleting destructors, and exception funclets) | 131 |
| Excluded as Thunk (import or jump thunk the linker generates) | 73 |
| Excluded as zlib (provided by open-source zlib, vendored when modified) | 1 |
| To match | 1,614 |
| Only in BRGlide | 41 |
| Component | Matching functions | Registers only | Not matching | Unknown | Matching code bytes |
|---|---|---|---|---|---|
| Game code | Unknown | 0 | 0 | 1,614 | Unknown |
Each part lists the routines of one component in a 64 KiB address block of the master program.
| Part | Group | Component | Range | Matching functions | Matching code bytes |
|---|---|---|---|---|---|
| pc-game-code-10000000.md | PC port | Game code | 0x10000000-0x10010000 | Unknown | Unknown |
| pc-game-code-10010000.md | PC port | Game code | 0x10010000-0x10020000 | Unknown | Unknown |
| pc-game-code-10020000.md | PC port | Game code | 0x10020000-0x10030000 | Unknown | Unknown |
| pc-game-code-10030000.md | PC port | Game code | 0x10030000-0x10040000 | Unknown | Unknown |
| pc-game-code-10040000.md | PC port | Game code | 0x10040000-0x10050000 | Unknown | Unknown |
| pc-game-code-10050000.md | PC port | Game code | 0x10050000-0x10060000 | Unknown | Unknown |
| pc-game-code-10060000.md | PC port | Game code | 0x10060000-0x10070000 | Unknown | Unknown |
| pc-game-code-10070000.md | PC port | Game code | 0x10070000-0x10080000 | Unknown | Unknown |
| pc-game-code-10080000.md | PC port | Game code | 0x10080000-0x10090000 | Unknown | Unknown |