Small optimizations
This commit is contained in:
parent
efc35103e5
commit
84f20a1cad
4 changed files with 42 additions and 21 deletions
|
@ -145,23 +145,6 @@ inline void WriteToHardware(u32 address, const T data)
|
|||
|
||||
// =====================
|
||||
|
||||
bool IsValidAddress(const u32 address) {
|
||||
if ((address & 0x3E000000) == 0x08000000) {
|
||||
return true;
|
||||
}
|
||||
else if ((address & 0x3F800000) == 0x04000000) {
|
||||
return true;
|
||||
}
|
||||
else if ((address & 0xBFFF0000) == 0x00010000) {
|
||||
return true;
|
||||
}
|
||||
else if ((address & 0x3F000000) >= 0x08000000 && (address & 0x3F000000) < 0x08000000 + g_MemorySize) {
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsRAMAddress(const u32 address) {
|
||||
if ((address & 0x3E000000) == 0x08000000) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue