This commit is contained in:
Carl.Kenner 2009-03-13 08:55:53 +00:00
parent afec8200f8
commit 0f833a9d87
2 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,8 @@
#define MKDA gid('A','X','D') #define MKDA gid('A','X','D')
#define MKTE gid('A','W','4') #define MKTE gid('A','W','4')
#define CORVETTE gid('A','V','C')
u8 gbReadMemory(register u16 address); u8 gbReadMemory(register u16 address);
void gbWriteMemory(register u16 address, register u8 value); void gbWriteMemory(register u16 address, register u8 value);

View File

@ -33,6 +33,10 @@ extern bool timer3On;
extern int timer3Ticks; extern int timer3Ticks;
extern int timer3ClockReload; extern int timer3ClockReload;
extern int cpuTotalTicks; extern int cpuTotalTicks;
extern u32 RomIdCode;
#define gid(a,b,c) (a|(b<<8)|(c<<16))
#define CORVETTE gid('A','V','C')
/***************************************************************************** /*****************************************************************************
* Nintendo GC Virtual Memory function override * Nintendo GC Virtual Memory function override
@ -560,6 +564,7 @@ static inline void CPUWriteMemory(u32 address, u32 value)
value); value);
else else
#endif #endif
if(address < 0x5000400 || (RomIdCode & 0xFFFFFF) != CORVETTE)
WRITE32LE(((u32 *)&paletteRAM[address & 0x3FC]), value); WRITE32LE(((u32 *)&paletteRAM[address & 0x3FC]), value);
break; break;
case 0x06: case 0x06:
@ -656,6 +661,7 @@ static inline void CPUWriteHalfWord(u32 address, u16 value)
value); value);
else else
#endif #endif
if(address < 0x5000400 || (RomIdCode & 0xFFFFFF) != CORVETTE)
WRITE16LE(((u16 *)&paletteRAM[address & 0x3fe]), value); WRITE16LE(((u16 *)&paletteRAM[address & 0x3fe]), value);
break; break;
case 6: case 6: