Getting started

This repository does not ship the game. It ships the commented disassembly of Mopi Ranger (Konami, 1985, RC-728) and the tools that reproduce it.

What you need

The check that decides

make comprueba      # that the dump is the same one
make                # trace, build the listing, reassemble and check

make ends with this, and it is the only line that matters:

OK: reproducible byte a byte

It means that the listing in src/mopiranger.asm, assembled, gives back the same 16,384 bytes as the cartridge. If that fails, nothing else counts.

What each target does

targetwhat it does
make tracefollows the flow from the entry points in src/mopiranger.entries
make listadowrites src/mopiranger.asm from the trace and the notes
make verifyassembles and compares the sha256 with the original
make sanitywhat reassembly does NOT cover (see below)
make testthe tests
make densidadhow much of the listing is commented
make mapasdraws the zones by unpacking them
make webbuilds these pages

Why verify is not enough

A listing can reproduce the ROM byte for byte and still be telling lies: bytes do not change because you read them wrong. What catches that is make sanity:

The files

src/mopiranger.entries   the entry points, each with its reason
src/mopiranger.nocode    the ranges that are NOT code
src/mopiranger.notes     what is understood: data blocks and comments
src/mopiranger.asm       the listing, generated
tools/                   the tracer, the generator and the drawing tools

The .asm is generated: what you edit is the .notes, because the comments are anchored to addresses and so survive a re-trace.