This commit is contained in:
negativeExponent 2021-05-21 12:49:47 +08:00
parent 19aae231c0
commit 4e5b61f220
1 changed files with 3 additions and 2 deletions

View File

@ -133,8 +133,8 @@ static inline uint32_t CPUReadMemory(uint32_t address)
case 15: case 15:
if (cpuFlashEnabled | cpuSramEnabled) { // no need to swap this if (cpuFlashEnabled | cpuSramEnabled) { // no need to swap this
value = flashRead(address) * 0x01010101; value = flashRead(address) * 0x01010101;
break;
} }
break;
// default // default
default: default:
unreadable: unreadable:
@ -288,6 +288,7 @@ static inline uint32_t CPUReadHalfWord(uint32_t address)
if (cpuFlashEnabled | cpuSramEnabled) { if (cpuFlashEnabled | cpuSramEnabled) {
// no need to swap this // no need to swap this
value = flashRead(address) * 0x0101; value = flashRead(address) * 0x0101;
break;
} }
// default // default
default: default:
@ -638,7 +639,7 @@ static inline void CPUWriteHalfWord(uint32_t address, uint16_t value)
(*cpuSaveGameFunc)(address, (uint8_t)value); (*cpuSaveGameFunc)(address, (uint8_t)value);
break; break;
} }
goto unwritable; // fallthrough
default: default:
unwritable: unwritable:
#ifdef GBA_LOGGING #ifdef GBA_LOGGING