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

Method writeMemory

src/main/java/jace/hardware/CardRamFactor.java:191–196  ·  view source on GitHub ↗
(int i, byte newValue)

Source from the content-addressed store, hash-verified

189 }
190
191 private void writeMemory(int i, byte newValue) {
192 while (i >= cardRam.length) {
193 i -= cardRam.length;
194 }
195 cardRam[i] = newValue;
196 }
197
198 private void allocateMemory(int size) {
199 if (cardRam != null && cardRam.length == size) return;

Callers 1

handleIOAccessMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected