AtGames Sound Fix, Within Your Own Hack!

Discussion in 'Tutorials' started by RobiWanKenobi, Nov 25, 2023.

Tags:
  1. RobiWanKenobi

    RobiWanKenobi Python Developer and ASM enthusiast Member

    Joined:
    Sep 10, 2022
    Messages:
    84
    Location:
    United States
    You may recall that the AtGames Firecore Consoles have some really bad PSG and FM pitches. I, with some help from Big Evil Corporation's blog post, Taming The Firecore Part 1, have made some code to fix the sound on AtGames consoles, without having to use Neto's Bootloader or Neto MS-DOS.

    I'll update this when I figure out how to detect a Firecore.

    The Code:
    In The label Where Your Sound Driver is loaded, add:

    Code:
        move.w #$FFFF, $00000000    ; Latch 0x0000
        move.b #$78,   $00B00018    ; Write new PSG frequency
        move.b #$26,   $00B01054    ; Write new FM frequency
        move.b #$20,   $00B01055    ; Write new FM clock
        move.w #$FFF7, $00000000    ; Un-latch
    Label Names:

    Sonic 1 AS (GitHub, 2023):

    DACDriverLoad or SoundDriverLoad (Old Label)
    Sonic 2 (GitHub, 2023):
    SoundDriverLoad
    Sonic 3&K (GitHub, 2023):
    SndDrvInit
     
    Last edited: Nov 25, 2023
    Hame, Nik Pi, ProjectFM and 1 other person like this.
  2. Devon

    Devon I'm a loser, baby, so why don't you kill me? Member

    Joined:
    Aug 26, 2013
    Messages:
    1,376
    Location:
    your mom
    Here, courtesy of BigEvilCorporation himself from the Tanglewood source code.
     
    ProjectFM likes this.