Package mars.tools

Class InstructionCounter

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Observer, Accessible, RootPaneContainer, WindowConstants, MarsTool

public class InstructionCounter extends AbstractMarsToolAndApplication
Instruction counter tool. Can be used to know how many instructions were executed to complete a given program. Code slightly based on MemoryReferenceVisualization.
Author:
Felipe Lessa <felipe.lessa@gmail.com>
See Also:
Serialized Form
  • Constructor Details

    • InstructionCounter

      public InstructionCounter(String title, String heading)
      Simple constructor, likely used to run a stand-alone memory reference visualizer.
      Parameters:
      title - String containing title for title bar
      heading - String containing text for heading shown in upper part of window.
    • InstructionCounter

      public InstructionCounter()
      Simple construction, likely used by the MARS Tools menu mechanism.
  • Method Details