Silence warnings and fixes

- Silence warning [-Wmaybe-uninitialized]
- m359: Fix value overflow
- m534: Silence warnings
- mmc1: Silence warnings
- Silence more warnings
This commit is contained in:
negativeExponent
2020-02-17 10:11:55 +08:00
parent ddb1fe786a
commit f9fb33d8e8
9 changed files with 19 additions and 27 deletions

View File

@@ -30,10 +30,10 @@ static uint32 GetPRGBank(uint32 bank)
}
void SyncPRG_GNROM(int A14, int AND, int OR) {
setprg8(0x8000, (GetPRGBank(0) & ~A14) & AND | OR);
setprg8(0xA000, (GetPRGBank(1) & ~A14) & AND | OR);
setprg8(0xC000, (GetPRGBank(0) | A14) & AND | OR);
setprg8(0xE000, (GetPRGBank(1) | A14) & AND | OR);
setprg8(0x8000, ((GetPRGBank(0) & ~A14) & AND) | OR);
setprg8(0xA000, ((GetPRGBank(1) & ~A14) & AND) | OR);
setprg8(0xC000, ((GetPRGBank(0) | A14) & AND) | OR);
setprg8(0xE000, ((GetPRGBank(1) | A14) & AND) | OR);
}
static void M534PW(uint32 A, uint8 V) {
@@ -47,13 +47,6 @@ static void M534CW(uint32 A, uint8 V) {
setchr1(A, (V & 0xFF) | ((EXPREGS[2] & 0x0F) << 3) | ((EXPREGS[0] & 0x18) << 4));
}
static DECLFR(M534Read) {
if (EXPREGS[1] & 0x01)
return (EXPREGS[4] | (X.DB & ~0x03));
else
return CartBR(A);
}
static DECLFW(M534IRQWrite) {
MMC3_IRQWrite(0xC000 | (A & 1), V ^ 0xFF);
}