org.mythsim.swing
Class MythSimSwing

java.lang.Object
  |
  +--org.mythsim.core.MythSim
        |
        +--org.mythsim.swing.MythSimSwing

public class MythSimSwing
extends MythSim

Swing interface to the simulator.


Field Summary
static int EXIT_ACTION
           
static int LAST_ACTION
           
static int MINUS1_ACTION
           
static int MINUS10_ACTION
           
static int MINUS100_ACTION
           
static int NEXT_ACTION
           
static int OPEN_ACTION
           
static int PLUS1_ACTION
           
static int PLUS10_ACTION
           
static int PLUS100_ACTION
           
static int RELOAD_ACTION
           
static int RESET_ACTION
           
static int RUN_ACTION
           
 
Fields inherited from class org.mythsim.core.MythSim
A_BUS, A_SEL, A_SEL_SET, ADDRESS, ADDRESS_FALSE, ADDRESS_FALSE_SET, ADDRESS_SET, ADDRESS_TRUE, ADDRESS_TRUE_SET, ALU_ADD, ALU_ADDA, ALU_AND, ALU_BUS, ALU_NOT, ALU_OR, ALU_SEL, ALU_SEL_SET, ALU_SUB, ALU_SUBA, ALU_XOR, aluFuncs, B_BUS, B_SEL, B_SEL_SET, C_IN, C_IN_SET, C_OUT, CLOCK, COND, COND_C_OUT, COND_M7, COND_SET, COND_V, COND_WAIT, CONTROL_WORD_END, CONTROL_WORD_LENGTH, CONTROL_WORD_START, CURRENT_ADDRESS, INDEX_SEL, INDEX_SEL_SET, INVALID_FILES_MODE, IR_0, IR_1, IR0_SEL, IR0_SEL_SET, IR1_SEL, IR1_SEL_SET, LENGTH, LOCKED, M_7, MAIN_MEMORY, MAR, MAR_SEL, MAR_SEL_SET, MDR, MDR_SEL, MDR_SEL_SET, MEMORY_BUS, mode, NO_FILES_MODE, opcodeTags, R_0, R_1, R_2, R_3, R_4, R_5, R_6, R_7, R0_WRITE, R0_WRITE_SET, R1_WRITE, R1_WRITE_SET, R2_WRITE, R2_WRITE_SET, R3_WRITE, R3_WRITE_SET, R4_WRITE, R4_WRITE_SET, R5_WRITE, R5_WRITE_SET, R6_WRITE, R6_WRITE_SET, R7_WRITE, R7_WRITE_SET, READ, READ_SET, RESULT_ALU, RESULT_BUS, RESULT_IR_CONST4, RESULT_IR_CONST8, RESULT_MDR, RESULT_SEL, RESULT_SEL_SET, RI_SEL, RI_SEL_SET, RJ_SEL, RJ_SEL_SET, RK_SEL, RK_SEL_SET, STATUS_ARRAY_LENGTH, V, VA_SEL_BUS, VALID_FILES_MODE, VB_SEL_BUS, version_title, VR0_WRITE_BUS, VR1_WRITE_BUS, VR2_WRITE_BUS, VR3_WRITE_BUS, WAIT, WRITE, WRITE_BUS, WRITE_SET
 
Constructor Summary
MythSimSwing(org.mythsim.swing.MainJFrame _f)
           
 
Method Summary
 void boot()
          Boot comptuer.
 JButton createJButton(int index)
           
 JMenuItem createJMenuItem(int index)
           
 void exit_app()
          EXIT_ACTION
 Action getAction(int index)
           
 int getMode()
           
 JMenu getPluginJMenu()
           
 void last()
          LAST_ACTION
 void next()
          NEXT_ACTION
 void open()
          OPEN_ACTION
 void reload()
          RELOAD_ACTION
 void reset()
          RESET_ACTION
 void run()
          RUN_ACTION
 void setMode(int _mode)
          Freezes buttons and menus based on a current mode value.
 void setupPlugins()
          Setup each of the plugins.
 void step(int x)
          MINUS100_ACTION, MINUS10_ACTION, MINUS1_ACTION, PLUS1_ACTION, PLUS10_ACTION, PLUS100_ACTION
 void stepPlugins()
          Step each of the plugins.
 
Methods inherited from class org.mythsim.core.MythSim
AND, and, bit2int, carry, carry, empty, fix, funcName, getMemory, getMemoryFile, getMemoryFileName, getMemoryFilePath, getMemorySource, getMicrocodeFile, getMicrocodeFileName, getMicrocodeFilePath, getMicrocodeSource, getPreviousStatus, getRegA, getRegB, getStatus, getStatus, getUcode, getUstore, int2bit, lownibble, m7, name, normal, normal2tc, NOT, not, opcode, OR, or, overflow, parse, ri, rj, rk, setFileMemory, setFileMicrocode, step, tc2normal, ucodeZero, XOR, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_ACTION

public static final int OPEN_ACTION
See Also:
Constant Field Values

RELOAD_ACTION

public static final int RELOAD_ACTION
See Also:
Constant Field Values

RESET_ACTION

public static final int RESET_ACTION
See Also:
Constant Field Values

LAST_ACTION

public static final int LAST_ACTION
See Also:
Constant Field Values

MINUS100_ACTION

public static final int MINUS100_ACTION
See Also:
Constant Field Values

MINUS10_ACTION

public static final int MINUS10_ACTION
See Also:
Constant Field Values

MINUS1_ACTION

public static final int MINUS1_ACTION
See Also:
Constant Field Values

PLUS1_ACTION

public static final int PLUS1_ACTION
See Also:
Constant Field Values

PLUS10_ACTION

public static final int PLUS10_ACTION
See Also:
Constant Field Values

PLUS100_ACTION

public static final int PLUS100_ACTION
See Also:
Constant Field Values

NEXT_ACTION

public static final int NEXT_ACTION
See Also:
Constant Field Values

RUN_ACTION

public static final int RUN_ACTION
See Also:
Constant Field Values

EXIT_ACTION

public static final int EXIT_ACTION
See Also:
Constant Field Values
Constructor Detail

MythSimSwing

public MythSimSwing(org.mythsim.swing.MainJFrame _f)
Method Detail

open

public void open()
          throws Exception
OPEN_ACTION

Exception

reload

public void reload()
            throws Exception
RELOAD_ACTION

Exception

reset

public void reset()
           throws Exception
RESET_ACTION

Exception

last

public void last()
          throws MythError
LAST_ACTION

Overrides:
last in class MythSim
MythError

step

public void step(int x)
          throws MythError
MINUS100_ACTION, MINUS10_ACTION, MINUS1_ACTION, PLUS1_ACTION, PLUS10_ACTION, PLUS100_ACTION

Overrides:
step in class MythSim
MythError

next

public void next()
          throws MythError
NEXT_ACTION

Overrides:
next in class MythSim
MythError

run

public void run()
         throws MythError
RUN_ACTION

Overrides:
run in class MythSim
MythError

exit_app

public void exit_app()
EXIT_ACTION


setMode

public void setMode(int _mode)
Freezes buttons and menus based on a current mode value.


getMode

public int getMode()

getAction

public Action getAction(int index)

createJMenuItem

public JMenuItem createJMenuItem(int index)

createJButton

public JButton createJButton(int index)

getPluginJMenu

public JMenu getPluginJMenu()
Returns:
A JMenu will plugin in it.

setupPlugins

public void setupPlugins()
Setup each of the plugins.


stepPlugins

public void stepPlugins()
Step each of the plugins.


boot

public void boot()
          throws MythError
Boot comptuer.

Overrides:
boot in class MythSim
MythError


Copyright © 2002-2004 Jason Vroustouris. All Rights Reserved.