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

Method run

src/main/java/jace/applesoft/ApplesoftProgram.java:128–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }
127
128 public void run() {
129 Emulator.whileSuspended(c-> {
130 int programStart = c.getMemory().readWordRaw(START_OF_PROG_POINTER);
131 int programEnd = programStart + getProgramSize();
132 if (isProgramRunning()) {
133 whenReady(()->{
134 relocateVariables(programEnd);
135 injectProgram();
136 });
137 } else {
138 injectProgram();
139 clearVariables(programEnd);
140 }
141 });
142 }
143
144 private void injectProgram() {
145 Emulator.withMemory(memory->{

Callers 3

invokeAcmeMethod · 0.45
executeMethod · 0.45
doEventMethod · 0.45

Calls 9

whileSuspendedMethod · 0.95
getProgramSizeMethod · 0.95
isProgramRunningMethod · 0.95
whenReadyMethod · 0.95
relocateVariablesMethod · 0.95
injectProgramMethod · 0.95
clearVariablesMethod · 0.95
readWordRawMethod · 0.80
getMemoryMethod · 0.45

Tested by

no test coverage detected