MCPcopy Create free account
hub / github.com/badvision/jace / isMainMemory

Method isMainMemory

src/main/java/jace/core/RAMEvent.java:153–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers 1

trackActivityMethod · 0.80

Calls 3

isReadMethod · 0.80
isOffMethod · 0.80
isOnMethod · 0.45

Tested by

no test coverage detected