Package smsqmulator
Class SimpleEmulationThread
java.lang.Object
java.lang.Thread
smsqmulator.SimpleEmulationThread
- All Implemented Interfaces:
Runnable
,EmulationThread
The class that does the "simple" (fast) emulation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
run()
Does the actual work : execute cpu instructions in a loop.void
setckmem
(boolean checkmem) void
setCondition
(int dataReg, int addrReg, int condValue, boolean isContent, int address) void
setmemWatched
(int address) void
setScreenUpdateInterval
(int tim) Sets the interval between screen updates.void
setUpperLimit
(int address) void
switchLogging
(boolean logInstructions) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface smsqmulator.EmulationThread
resume, start, stop, suspend
-
Constructor Details
-
SimpleEmulationThread
-
-
Method Details
-
run
public void run()Does the actual work : execute cpu instructions in a loop. -
endEmulation
public void endEmulation()- Specified by:
endEmulation
in interfaceEmulationThread
-
setScreenUpdateInterval
public void setScreenUpdateInterval(int tim) Sets the interval between screen updates.- Specified by:
setScreenUpdateInterval
in interfaceEmulationThread
- Parameters:
tim
- the interval between screen updates in milliseconds.
-
switchLogging
public void switchLogging(boolean logInstructions) - Specified by:
switchLogging
in interfaceEmulationThread
-
setckmem
public void setckmem(boolean checkmem) - Specified by:
setckmem
in interfaceEmulationThread
-
setmemWatched
public void setmemWatched(int address) - Specified by:
setmemWatched
in interfaceEmulationThread
-
setUpperLimit
public void setUpperLimit(int address) - Specified by:
setUpperLimit
in interfaceEmulationThread
-
setCondition
public void setCondition(int dataReg, int addrReg, int condValue, boolean isContent, int address) - Specified by:
setCondition
in interfaceEmulationThread
-