--- np2/sound/soundrom.c 2003/12/08 00:55:33 1.6 +++ np2/sound/soundrom.c 2005/02/07 14:46:12 1.9 @@ -1,7 +1,7 @@ #include "compiler.h" #include "dosio.h" +#include "cpucore.h" #include "pccore.h" -#include "memory.h" #include "soundrom.h" @@ -10,7 +10,7 @@ static const char file_sound[] = "sound"; static const char file_extrom[] = ".rom"; -static const BYTE defsoundrom[9] = { +static const UINT8 defsoundrom[9] = { 0x01,0x00,0x00,0x00,0xd2,0x00,0x08,0x00,0xcb}; @@ -38,6 +38,12 @@ static BOOL loadsoundrom(UINT address, c } file_cpyname(soundrom.name, romname, sizeof(soundrom.name)); soundrom.address = address; + if (address == 0xd0000) { + CPU_RAM_D000 &= ~(0x0f << 0); + } + else if (address == 0xd4000) { + CPU_RAM_D000 &= ~(0x0f << 4); + } return(SUCCESS); lsr_err: