Package smsqmulator

Class SimpleEmulationThread

java.lang.Object
java.lang.Thread
smsqmulator.SimpleEmulationThread
All Implemented Interfaces:
Runnable, EmulationThread

public class SimpleEmulationThread extends Thread implements EmulationThread
The class that does the "simple" (fast) emulation.
  • Constructor Details

    • SimpleEmulationThread

      public SimpleEmulationThread(MC68000Cpu cpu, Screen screen)
  • Method Details

    • run

      public void run()
      Does the actual work : execute cpu instructions in a loop.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • endEmulation

      public void endEmulation()
      Specified by:
      endEmulation in interface EmulationThread
    • setScreenUpdateInterval

      public void setScreenUpdateInterval(int tim)
      Sets the interval between screen updates.
      Specified by:
      setScreenUpdateInterval in interface EmulationThread
      Parameters:
      tim - the interval between screen updates in milliseconds.
    • switchLogging

      public void switchLogging(boolean logInstructions)
      Specified by:
      switchLogging in interface EmulationThread
    • setckmem

      public void setckmem(boolean checkmem)
      Specified by:
      setckmem in interface EmulationThread
    • setmemWatched

      public void setmemWatched(int address)
      Specified by:
      setmemWatched in interface EmulationThread
    • setUpperLimit

      public void setUpperLimit(int address)
      Specified by:
      setUpperLimit in interface EmulationThread
    • setCondition

      public void setCondition(int dataReg, int addrReg, int condValue, boolean isContent, int address)
      Specified by:
      setCondition in interface EmulationThread