mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
Fixed memory pool macros to (hopefully) work with gcc.
This commit is contained in:
parent
6c5b4293eb
commit
5e1ea75374
|
@ -1,3 +1,4 @@
|
|||
//TODO: before release, comment out printf()'s
|
||||
/**
|
||||
** Supermodel
|
||||
** A Sega Model 3 Arcade Emulator.
|
||||
|
@ -394,15 +395,15 @@ void CSoundBoard::Reset(void)
|
|||
UpdateROMBanks();
|
||||
M68KSetContext(&M68K);
|
||||
M68KReset();
|
||||
printf("SBrd PC=%06X\n", M68KGetPC());
|
||||
//printf("SBrd PC=%06X\n", M68KGetPC());
|
||||
M68KGetContext(&M68K);
|
||||
if (NULL != DSB)
|
||||
DSB->Reset();
|
||||
DebugLog("Sound Board Reset\n");
|
||||
printf("PC=%06X\n", M68KGetPC());
|
||||
M68KSetContext(&M68K);
|
||||
M68KGetContext(&M68K);
|
||||
printf("PC=%06X\n", M68KGetPC());
|
||||
//printf("PC=%06X\n", M68KGetPC());
|
||||
//M68KSetContext(&M68K);
|
||||
//M68KGetContext(&M68K);
|
||||
//printf("PC=%06X\n", M68KGetPC());
|
||||
}
|
||||
|
||||
void CSoundBoard::SaveState(CBlockFile *SaveState)
|
||||
|
@ -454,11 +455,11 @@ void CSoundBoard::AttachDSB(CDSB *DSBPtr)
|
|||
}
|
||||
|
||||
// Offsets of memory regions within sound board's pool
|
||||
#define OFFSET_RAM1 (0) // 1 MB SCSP1 RAM
|
||||
#define OFFSET_RAM2 (0x100000) // 1 MB SCSP2 RAM
|
||||
#define OFFSET_AUDIO_LEFT (0x200000) // 1470 bytes (16 bits, 44.1 KHz, 1/60th second) left audio channel
|
||||
#define OFFSET_AUDIO_RIGHT (0x2005BE) // 1470 bytes right audio channel
|
||||
#define MEMORY_POOL_SIZE (0x100000+0x100000+0x5be+0x5be)
|
||||
#define OFFSET_RAM1 0 // 1 MB SCSP1 RAM
|
||||
#define OFFSET_RAM2 0x100000 // 1 MB SCSP2 RAM
|
||||
#define OFFSET_AUDIO_LEFT 0x200000 // 1470 bytes (16 bits, 44.1 KHz, 1/60th second) left audio channel
|
||||
#define OFFSET_AUDIO_RIGHT 0x2005BE // 1470 bytes right audio channel
|
||||
#define MEMORY_POOL_SIZE (0x100000 + 0x100000 + 0x5BE + 0x5BE)
|
||||
|
||||
BOOL CSoundBoard::Init(const UINT8 *soundROMPtr, const UINT8 *sampleROMPtr)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue