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

Method read

src/main/java/jace/core/RAM.java:144–153  ·  view source on GitHub ↗
(int address, RAMEvent.TYPE eventType, boolean triggerEvent, boolean requireSyncronization)

Source from the content-addressed store, hash-verified

142 }
143
144 public byte read(int address, RAMEvent.TYPE eventType, boolean triggerEvent, boolean requireSyncronization) {
145 // if (address >= 65536) return 0;
146 byte value = activeRead.getMemoryPage(address)[address & 0x0FF];
147// if (triggerEvent || ((address & 0x0FF00) == 0x0C000)) {
148// if (triggerEvent || (address & 0x0FFF0) == 0x0c030) {
149 if (triggerEvent) {
150 value = callListener(eventType, address, value, value, requireSyncronization);
151 }
152 return value;
153 }
154
155 public int readWordRaw(int address) {
156 int lsb = 0x00ff & readRaw(address);

Callers 11

readWordMethod · 0.95
brunMethod · 0.45
saveFileMethod · 0.45
MODEEnum · 0.45
calculateAddressMethod · 0.45
getValueMethod · 0.45
executeOpcodeMethod · 0.45
popMethod · 0.45
loadRomMethod · 0.45
getClipboardKeystrokeMethod · 0.45
mainMethod · 0.45

Calls 2

callListenerMethod · 0.95
getMemoryPageMethod · 0.80

Tested by

no test coverage detected