Actions

SCHG How-to

Difference between revisions of "Port Sonic 3's Sound Driver to Sonic 1"

From Sonic Retro

(Preparing to use Sonic 3/K/3K sound system)
Line 18: Line 18:
 
nop
 
nop
 
</asm>
 
</asm>
 +
 +
==Installing the Load Driver routine==
  
 
[[Category:SCHG How-tos|Sonic 3 Sound Driver in Sonic1]]
 
[[Category:SCHG How-tos|Sonic 3 Sound Driver in Sonic1]]

Revision as of 19:51, 8 January 2010

You probably saw a quick and dirty way to do this on SSRG, but lets do it the proper way, the way that sonic team would do it.

Overview

First off, Sonic 3's sound driver has the V_Int reloader built into it so it is not needed, some routines need replacement, sounds need fixing, and we need to replace the sounds and music. We will be using the hivebrain version, if you wish to do it via svn version, I am sure you can come up with a way that works by seeing what changes I made in the hivebrain version.

Preparing to use Sonic 3/K/3K sound system

The Vertical Interrupt and Horizontal Interrupt need to be fixed, since the sonic 1/2 system uses them but the Sonic 3/K/3K system doesn't.

first we will fix the vertical interrupt, by changing: <asm> loc_B5E: ; XREF: loc_B88 jsr (sub_71B4C).l </asm>

to: <asm> loc_B5E: ; XREF: loc_B88 nop </asm>

Installing the Load Driver routine