Actions

SCHG How-to

Difference between revisions of "Port Sonic 2 Final Sound Driver to Sonic 1"

From Sonic Retro

(Overview)
(importing disasm2007 macros)
Line 12: Line 12:
  
 
===importing disasm2007 macros===
 
===importing disasm2007 macros===
 +
 +
[[Category:SCHG How-tos| ]]

Revision as of 13:37, 29 August 2009

Many have proven that the Sonic1 driver can obviously be put into Sonic2, but whbout the reverse?. Well, the reverse makes a few hacks easier, but I would prefer the sonic3 driver for its rich and diverse and effects and music. I guess it is all about personal choice. One advantage with this driver over the s3 one is that you do not have to worry about where you put things, the driver comes from disasm2007 and this guide uses a disasm2005 sonic1, which are very close to each other.

Overview

There are a lot of things that need to change before we can use this:

  • First off we need to insert the disasm2007 macros, this makes it relatively easier to work with.
  • Next we will have to update the vertical and horizontal interrupts. Every time the z80 is stopped, we need to call the sound driver input routine.
  • We also need the sound driver input routine as well, obviously.
  • we also need to alter the play sound routines, sonic2 sound routines are needed instead of sonic1 ones (pause and unpause included)
  • all the places a sound is played need to be updated to play the correct sounds
  • the level select and debug need fixing.
  • sonic2 build tools need to be put in place.

importing disasm2007 macros