This project is designed to generate byte-matched clones of the original Sega 32X BIOS files (for master/slave SH2 and 68k) using the GNU toolchain.
- Download the Renesas official GNUSH v13.01 from https://llvm-gcc-renesas.com/sh/.
- Download 68000 GNU toolchain
m68k-elf-gcc4.8.0.exefrom https://gnutoolchains.com/m68k-elf/.(Required for building the 32X 68000 BIOS) - Install the toolchain binaries.
- Open the command line tools window through
StartMenu -> GNUSHv13.01-ELF -> sh-elf Tool Chain, this creates a session with all environment variables set up for 32X SH2 BIOS ROM building. - Assume you installed the 68000 GNU toolchain in
C:\SysGCC\m68k-elf, run the following command in the previous console to add the m68k toolchain to the PATH variable(current console session only):set PATH=C:\SysGCC\m68k-elf\bin;%PATH%. (Required for building the 32X 68000 BIOS) - Switch to the
GNU_ASdirectory and run the commandmake allormake clean. - The output BIOS files are
master/master.bin,slave/slave.binandm68k/m68k.bin.
- Check
makefileandbios_rom.ldfor details. - Sega 32X Hardware Manual: https://consolemods.org/wiki/images/e/e9/32X_Hardware_Manual_1994_Sega_text.pdf
- SH2 CPU Hardware Manual: https://segaretro.org/images/2/2c/SH7604_Hardware_Manual.pdf
- Renesas SH Instruction Set Summary: https://shared-ptr.com/sh_insns.html