()
| 151 | } |
| 152 | |
| 153 | public boolean isMainMemory() { |
| 154 | if (type.isRead() && SoftSwitches.RAMRD.isOn()) { |
| 155 | return false; |
| 156 | } else if (!type.isRead() && SoftSwitches.RAMWRT.isOn()) { |
| 157 | return false; |
| 158 | } else if (address < 0x0200) { |
| 159 | // Check if zero page is pointed to auxiliary memory |
| 160 | return SoftSwitches.AUXZP.isOff(); |
| 161 | } |
| 162 | if ((address >= 0x400 && address < 0x0800) || (address >= 0x2000 && address < 0x4000)) { |
| 163 | if (SoftSwitches._80STORE.isOn() && SoftSwitches.PAGE2.isOn()) { |
| 164 | return false; |
| 165 | } |
| 166 | } |
| 167 | return true; |
| 168 | } |
| 169 | } |
no test coverage detected