Jump to content
NHL'94 Forums

Recommended Posts

Posted (edited)

Compiling 'NHL Hockey' Source Code


Happy to share that the 'NHL Hockey' (92) source code now compiles successfully. The code is available on my GitHub repository—enjoy exploring and building upon it!

Community discoveries and tools are welcome and will be added to the repository for everyone’s benefit. Please feel free to share suggestions, report issues, or submit pull requests!

For convenience, you can simply download the zip file and run the included build.bat file.

Technical Info


For those interested, below is some more detailed info on what was needed to get the code compiling.

  • The original compiler used to build the source code was not included, so a different compiler ASM68k was used to compile the source.
  • Each compiler is different and makes decisions / optimizations based on the opcode. IE move vs moveq vs move.l specific changes were needed.
  • The included Macros needed to be written differently to work with this compiler.
  • Custom Hex Macro needed to be written.
  • Math: Power of 2 was not supported and needed to be re-written.
  • RSSET was needed to create symbol definitions without generating data. DS. vs RS.
  • Globals weren't needed
  • Parent labels were needed in some instances were calculations were being performed on local labels
  • Used the original symbols file and bin file to compare opcodes and ram locations. 99.91% match now :)

Findings From Source


TBD - Will update with info as it comes in. Such as file formats etc.

 

image.png

Edited by McMarkis
  • Love 4
  • Thanks 2
  • Wow 1
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Who's Online   0 Members, 0 Anonymous, 37 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...