This project contains tools for compiling NHL Hockey for the Sega Genesis using ASM68K compiler.
- Clone/extract this repository
- Open in VSCode or editor of choice (Not required if just building the ROM)
Root/
├── assembler/ # Assembler
├── notebooks/ # Jupyter Notebooks for Additional Tooling (Not Required)
├── output/ # Build output
├── src/ # Source assembly files and assets
│ ├── _docs/ # Documentation files
│ ├── graphics/ # Graphic assets
│ ├── macros/ # Assembly macros
│ ├── sega/ # Sega-init code
│ ├── sound/ # Sound assets
│ └── *.asm # Assembly files
└── build.bat # Batch File for Invoking Assembler to Compile Source Code
- Run the build.bat file from the command prompt or terminal.
- Batch file should generate files in the
outputfolder
- Requires Docker to be installed.
- Clone the repo.
- CD into NHLHockey folder.
- Run the following comand to build the source files.
mkdir -p output && \
docker run --rm \
-v "$(pwd)/src:/src" \
-v "$(pwd)/output:/output" \
rhargreaves/asm68k \
/p /m /g /o d- /o s- /o r+ /o l+ /o l. /o ow+ /o op- /o os+ /o oz+ /o omq- /o oaq+ /o osq+ \
"hockey.asm,/output/nhl92.bin,/output/nhl92,/output/nhl92" > output/build.log 2>&1
output/
├── Build.log # Log file containing any errors during compilation.
├── nhl92.bin # ROM file if the build was successful without errors.
├── nhl92.lst # Debug information generated during the build.
└── nhl92.map # Symbol file used for debugging.
- For more detailed development information, please refer to the wiki.