A B C D E F G H I J K L M N O P Q R S T U V W X Y

A

AbstractMarsToolAndApplication - class mars.tools.AbstractMarsToolAndApplication.
An abstract class that provides generic components to facilitate implementation of a MarsTool and/or stand-alone Mars-based application.
AbstractMarsToolAndApplication.ConnectButton - class mars.tools.AbstractMarsToolAndApplication.ConnectButton.
 
AbstractMarsToolAndApplication.ConnectButton() - Constructor for class mars.tools.AbstractMarsToolAndApplication.ConnectButton
 
AbstractMarsToolAndApplication.EnterKeyListener - class mars.tools.AbstractMarsToolAndApplication.EnterKeyListener.
 
AbstractMarsToolAndApplication.EnterKeyListener(AbstractButton) - Constructor for class mars.tools.AbstractMarsToolAndApplication.EnterKeyListener
 
AbstractMarsToolAndApplication(String, String) - Constructor for class mars.tools.AbstractMarsToolAndApplication
Simple constructor
AbstractSyscall - class mars.mips.instructions.syscalls.AbstractSyscall.
Abstract class that a MIPS syscall system service may extend.
AbstractSyscall(int, String) - Constructor for class mars.mips.instructions.syscalls.AbstractSyscall
Constructor is provided so subclass may initialize instance variables.
accessIsFromGUI() - Method in class mars.mips.hardware.AccessNotice
Query whether the access originated from MARS GUI (AWT event queue)
accessIsFromMIPS() - Method in class mars.mips.hardware.AccessNotice
Query whether the access originated from executing MIPS program
AccessNotice - class mars.mips.hardware.AccessNotice.
Object provided to Observers of runtime access to MIPS memory or registers.
AccessNotice(int) - Constructor for class mars.mips.hardware.AccessNotice
 
action() - Method in class mars.tools.ScavengerHunt
 
action() - Method in class mars.tools.MarsBot
 
action() - Method in interface mars.tools.MarsTool
Performs tool functions.
action() - Method in class mars.tools.AbstractMarsToolAndApplication
Required MarsTool method to carry out Tool functions.
actionPerformed(ActionEvent) - Method in class mars.venus.SettingsExceptionHandlerAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.ToolAction
Response when tool's item selected from menu.
actionPerformed(ActionEvent) - Method in class mars.venus.SettingsValueDisplayBaseAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.SettingsLabelAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.SettingsExtendedAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.SettingsAssembleOnOpenAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.SettingsAssembleAllAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.SettingsAddressDisplayBaseAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.RunStopAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.RunStepAction
perform next simulated instruction step.
actionPerformed(ActionEvent) - Method in class mars.venus.RunResetAction
reset GUI components and MIPS resources
actionPerformed(ActionEvent) - Method in class mars.venus.RunPauseAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.RunGoAction
Action to take when GO is selected -- run the MIPS program!
actionPerformed(ActionEvent) - Method in class mars.venus.RunClearBreakpointsAction
When this option is selected, tell text segment window to clear breakpoints in its table model.
actionPerformed(ActionEvent) - Method in class mars.venus.RunBackstepAction
perform next simulated instruction step.
actionPerformed(ActionEvent) - Method in class mars.venus.RunAssembleAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.HelpHelpAction
Displays tabs with categories of information
actionPerformed(ActionEvent) - Method in class mars.venus.HelpAboutAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.GuiAction
does nothing by default.
actionPerformed(ActionEvent) - Method in class mars.venus.FileSaveAsAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.FileSaveAction
saves the file, if not alredy saved it will do a saveAs
actionPerformed(ActionEvent) - Method in class mars.venus.FilePrintAction
Uses the HardcopyWriter class developed by David Flanagan for the book "Java Examples in a Nutshell".
actionPerformed(ActionEvent) - Method in class mars.venus.FileOpenAction
Launch a file chooser for name of file to open
actionPerformed(ActionEvent) - Method in class mars.venus.FileNewAction
Code to create a new document.
actionPerformed(ActionEvent) - Method in class mars.venus.FileExitAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.FileCloseAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.EditUndoAction
Adapted from TextComponentDemo.java in the Java Tutorial "Text Component Features"
actionPerformed(ActionEvent) - Method in class mars.venus.EditRedoAction
Adapted from TextComponentDemo.java in the Java Tutorial "Text Component Features"
actionPerformed(ActionEvent) - Method in class mars.venus.EditPasteAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.EditCutAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.EditCopyAction
 
actionPerformed(ActionEvent) - Method in class mars.venus.Coprocessor1Window
Called when user clicks on a condition flag checkbox.
add(ErrorMessage) - Method in class mars.ErrorList
Add new error message to end of list.
add(Token) - Method in class mars.assembler.TokenList
Adds a Token object to the end of the list.
addAsObserver() - Method in class mars.tools.MemoryReferenceVisualization
Override the inherited method, which registers us as an Observer over the static data segment (starting address 0x10010000) only.
addAsObserver() - Method in class mars.tools.FloatRepresentation
Override the inherited method, which registers us as an Observer over the static data segment (starting address 0x10010000) only.
addAsObserver() - Method in class mars.tools.AbstractMarsToolAndApplication
Add this app/tool as an Observer of desired MIPS Observables (memory and registers).
addAsObserver(int, int) - Method in class mars.tools.AbstractMarsToolAndApplication
Add this app/tool as an Observer of the specified subrange of MIPS memory.
addAsObserver(Register) - Method in class mars.tools.AbstractMarsToolAndApplication
Add this app/tool as an Observer of the specified MIPS register.
addConditionFlagClear(int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addConditionFlagSet(int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addCoprocessor0Restore(int, int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addCoprocessor1Restore(int, int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addDoNothing(int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addMemoryRestoreByte(int, int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addMemoryRestoreHalf(int, int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addMemoryRestoreRawWord(int, int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addMemoryRestoreWord(int, int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addObserver(Observer) - Method in class mars.mips.hardware.Memory
Method to accept registration from observer for any memory address.
addObserver(Observer, int) - Method in class mars.mips.hardware.Memory
Method to accept registration from observer for specific address.
addObserver(Observer, int, int) - Method in class mars.mips.hardware.Memory
Method to accept registration from observer for specific address range.
addPCRestore(int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addRegisterFileRestore(int, int) - Method in class mars.simulator.BackStepper
Add a new "back step" (the undo action) to the stack.
addRegistersObserver(Observer) - Static method in class mars.mips.hardware.RegisterFile
Each individual register is a separate object and Observable.
addRegistersObserver(Observer) - Static method in class mars.mips.hardware.Coprocessor1
Each individual register is a separate object and Observable.
addRegistersObserver(Observer) - Static method in class mars.mips.hardware.Coprocessor0
Each individual register is a separate object and Observable.
ADDRESS_EXCEPTION_LOAD - Static variable in class mars.simulator.Exceptions
 
ADDRESS_EXCEPTION_STORE - Static variable in class mars.simulator.Exceptions
 
AddressErrorException - exception mars.mips.hardware.AddressErrorException.
Represents MIPS AddressErrorException.
AddressErrorException(String, int, int) - Constructor for class mars.mips.hardware.AddressErrorException
Constructor for the AddressErrorException class
addSymbol(Token, int, boolean, ErrorList) - Method in class mars.assembler.SymbolTable
Adds a Symbol object into the array of Symbols.
ALIGN - Static variable in class mars.assembler.Directives
 
alignToWordBoundary(int) - Static method in class mars.mips.hardware.Memory
Utility method to align given address to next full word boundary, if not already aligned.
allocateBytesFromHeap(int) - Method in class mars.mips.hardware.Memory
Returns the next available word-aligned heap address.
append(String) - Method in class mars.venus.EditPane
Adds the source code line by line.
ARITHMETIC_OVERFLOW_EXCEPTION - Static variable in class mars.simulator.Exceptions
 
ASCII - Static variable in class mars.assembler.Directives
 
ASCIIZ - Static variable in class mars.assembler.Directives
 
assemble(ArrayList, boolean) - Method in class mars.MIPSprogram
Assembles the MIPS source program.
assemble(ArrayList, boolean) - Method in class mars.assembler.Assembler
Parse and generate machine code for the given MIPS program.
assemble(MIPSprogram, boolean) - Method in class mars.assembler.Assembler
Parse and generate machine code for the given MIPS program.
Assembler - class mars.assembler.Assembler.
An Assembler is capable of assembling a MIPS program.
Assembler() - Constructor for class mars.assembler.Assembler
 

B

backStep() - Method in class mars.simulator.BackStepper
Carry out a "back step", which will undo the latest execution step.
BackStepper - class mars.simulator.BackStepper.
Used to "step backward" through execution, undoing each instruction.
BackStepper() - Constructor for class mars.simulator.BackStepper
Create a fresh BackStepper.
backSteppingEnabled() - Method in class mars.MIPSprogram
Returns status of BackStepper associated with this program.
BasicInstruction - class mars.mips.instructions.BasicInstruction.
Class to represent a basic instruction in the MIPS instruction set.
BasicInstruction(String, BasicInstructionFormat, String, SimulationCode) - Constructor for class mars.mips.instructions.BasicInstruction
 
BasicInstruction(String, String, BasicInstructionFormat, String, SimulationCode) - Constructor for class mars.mips.instructions.BasicInstruction
BasicInstruction constructor.
BasicInstructionFormat - class mars.mips.instructions.BasicInstructionFormat.
These are the MIPS-defined formats of basic machine instructions.
bestOperandMatch(TokenList, ArrayList) - Static method in class mars.assembler.OperandFormat
If candidate operator token matches more than one instruction mnemonic, then select first such Instruction that has an exact operand match.
BIG_ENDIAN - Static variable in class mars.mips.hardware.Memory
Constant representing byte order of each memory word.
Binary - class mars.util.Binary.
Some utility methods for working with binary representations.
Binary() - Constructor for class mars.util.Binary
 
binaryStringToHexDigit(String) - Static method in class mars.util.Binary
Translate String consisting of '1's and '0's into char equivalent of the corresponding hexadecimal digit.
binaryStringToHexString(String) - Static method in class mars.util.Binary
Translate String consisting of '1's and '0's into String equivalent of the corresponding hexadecimal value.
binaryStringToInt(String) - Static method in class mars.util.Binary
Translate String consisting of '1's and '0's into an int value having that binary representation.
binaryStringToLong(String) - Static method in class mars.util.Binary
Translate String consisting of '1's and '0's into a long value having that binary representation.
bitValue(int, int) - Static method in class mars.util.Binary
Returns the bit value of the given bit position of the given int value.
bitValue(long, int) - Static method in class mars.util.Binary
Returns the bit value of the given bit position of the given long value.
BREAKPOINT - Static variable in class mars.simulator.Simulator
various reasons for simulate to end...
BREAKPOINT_EXCEPTION - Static variable in class mars.simulator.Exceptions
 
buildBasicStatementFromBasicInstruction(ErrorList) - Method in class mars.ProgramStatement
Given specification of BasicInstruction for this operator, build the corresponding assembly statement in basic assembly format (e.g.
buildButtonAreaMarsTool() - Method in class mars.tools.AbstractMarsToolAndApplication
The MarsTool default set of controls has one row of 3 buttons.
buildButtonAreaStandAlone() - Method in class mars.tools.AbstractMarsToolAndApplication
The Mars stand-alone app default set of controls has two rows of controls.
buildDisplayArea() - Method in class mars.tools.FloatRepresentation
 
buildHeadingArea() - Method in class mars.tools.AbstractMarsToolAndApplication
Constructs GUI header as label with default positioning and font.
buildMachineStatementFromBasicStatement(ErrorList) - Method in class mars.ProgramStatement
Given the current statement in Basic Assembly format (see above), build the 32-bit binary machine code statement.
buildMainDisplayArea() - Method in class mars.tools.IntroToTools
Implementation of the inherited abstract method to build the main display area of the GUI.
buildMainDisplayArea() - Method in class mars.tools.MemoryReferenceVisualization
Method that constructs the main display area.
buildMainDisplayArea() - Method in class mars.tools.FloatRepresentation
Method that constructs the main display area.
buildMainDisplayArea() - Method in class mars.tools.AbstractMarsToolAndApplication
Abstract method that must be instantiated by subclass to build the main display area of the GUI.
buildMainDisplayArea() - Method in class mars.tools.CacheSimulator
Method that constructs the main cache simulator display area.
buildToolsMenu() - Method in class mars.venus.ToolLoader
Called in VenusUI to build its Tools menu.
BYTE - Static variable in class mars.assembler.Directives
 
BYTE_SIZE - Static variable in class mars.assembler.DataTypes
Number of bytes occupied by MIPS byte is 1.

C

CacheSimulator - class mars.tools.CacheSimulator.
A data cache simulator.
CacheSimulator() - Constructor for class mars.tools.CacheSimulator
Simple constructor, likely used by the MARS Tools menu mechanism
CacheSimulator(String, String) - Constructor for class mars.tools.CacheSimulator
Simple constructor, likely used to run a stand-alone cache simulator.
CAUSE - Static variable in class mars.mips.hardware.Coprocessor0
 
CHAR_SIZE - Static variable in class mars.assembler.DataTypes
Number of bytes occupied by MIPS character is 1.
charnum - Variable in class mars.venus.HardcopyWriter
 
chars_per_line - Variable in class mars.venus.HardcopyWriter
 
chars_per_tab - Variable in class mars.venus.HardcopyWriter
 
charwidth - Variable in class mars.venus.HardcopyWriter
 
clear() - Method in class mars.assembler.SymbolTable
Creates a fresh arrayList for a new table.
clear() - Method in class mars.mips.hardware.Memory
Explicitly clear the contents of memory.
clearAllBreakpoints() - Method in class mars.venus.TextSegmentWindow
Clears all breakpoints that have been set since last assemble, and updates the display of the breakpoint column.
clearBit(int, int) - Static method in class mars.util.Binary
Sets the specified bit of the specified value to 0, and returns the result.
clearConditionFlag(int) - Static method in class mars.mips.hardware.Coprocessor1
Set condition flag to 0 (false).
clearConditionFlags() - Static method in class mars.mips.hardware.Coprocessor1
Clear all condition flags (0-7).
clearPane() - Method in class mars.venus.ExecutePane
Clears out all components of the Execute tab: text segment display, data segment display, label display and register display.
clearWindow() - Method in class mars.venus.LabelsWindow
Clear the window
clearWindow() - Method in class mars.venus.TextSegmentWindow
remove all components
clearWindow() - Method in class mars.venus.DataSegmentWindow
Removes the table from its frame, typically done when a file is closed.
clearWindow() - Method in class mars.venus.RegistersWindow
clear and redisplay registers
clearWindow() - Method in class mars.venus.Coprocessor1Window
Reset and redisplay registers.
clearWindow() - Method in class mars.venus.Coprocessor0Window
Reset and redisplay registers
clone() - Method in class mars.assembler.TokenList
Makes clone (shallow copy) of this token list object.
close() - Method in class mars.venus.HardcopyWriter
This is the close( ) method that all Writer subclasses must implement.
closeFile(int) - Static method in class mars.util.SystemIO
Close the file with specified file descriptor
COLON - Static variable in class mars.assembler.TokenTypes
 
COMMENT - Static variable in class mars.assembler.TokenTypes
 
connect() - Method in class mars.tools.AbstractMarsToolAndApplication.ConnectButton
 
connectButton - Variable in class mars.tools.AbstractMarsToolAndApplication
 
construct() - Method in class mars.simulator.SwingWorker
Compute the value to be returned by the get method.
convertStreamPositionToLineColumn(int) - Method in class mars.venus.EditPane
Given byte stream position in text being edited, calculate its column and line number coordinates.
Coprocessor0 - class mars.mips.hardware.Coprocessor0.
Represents Coprocessor 0.
Coprocessor0() - Constructor for class mars.mips.hardware.Coprocessor0
 
Coprocessor0Window - class mars.venus.Coprocessor0Window.
Sets up a window to display registers in the UI.
Coprocessor0Window() - Constructor for class mars.venus.Coprocessor0Window
Constructor which sets up a fresh window with a table that contains the register values.
Coprocessor1 - class mars.mips.hardware.Coprocessor1.
Represents Coprocessor 1, the Floating Point Unit (FPU)
Coprocessor1() - Constructor for class mars.mips.hardware.Coprocessor1
 
Coprocessor1Window - class mars.venus.Coprocessor1Window.
Sets up a window to display Coprocessor 1 registers in the Registers pane of the UI.
Coprocessor1Window() - Constructor for class mars.venus.Coprocessor1Window
Constructor which sets up a fresh window with a table that contains the register values.
copyrightHolders - Static variable in class mars.Globals
MARS copyright holders
copyrightYears - Static variable in class mars.Globals
MARS copyright years
copyText() - Method in class mars.venus.EditPane
copy currently-selected text into clipboard
countObservers() - Method in class mars.mips.hardware.Memory
Return number of observers
createExampleTokenList() - Method in class mars.mips.instructions.Instruction
Used to build a token list from the example instruction provided as constructor argument.
createParsedList() - Method in class mars.MIPSprogram
Produces new empty list to hold parsed source code statements.
cutText() - Method in class mars.venus.EditPane
cut currently-selected text into clipboard

D

DATA - Static variable in class mars.assembler.Directives
 
DATA_SYMBOL - Static variable in class mars.assembler.Symbol
 
dataBaseAddress - Static variable in class mars.mips.hardware.Memory
base address for storage of non-global static data in data segment: 0x10010000 (from SPIM)
dataSegmentBaseAddress - Static variable in class mars.mips.hardware.Memory
base address for (user) data segment: 0x10000000
dataSegmentLimitAddress - Static variable in class mars.mips.hardware.Memory
 
DataSegmentWindow - class mars.venus.DataSegmentWindow.
Represents the Data Segment window, which is a type of JInternalFrame.
DataSegmentWindow(NumberDisplayBaseChooser[]) - Constructor for class mars.venus.DataSegmentWindow
Constructor for the Data Segment window.
DataTypes - class mars.assembler.DataTypes.
Information about MIPS data types.
DataTypes() - Constructor for class mars.assembler.DataTypes
 
debug - Static variable in class mars.Globals
Flag to determine whether or not to produce internal debugging information.
DECIMAL - Static variable in class mars.venus.NumberDisplayBaseChooser
 
DEFAULT_STATUS_VALUE - Static variable in class mars.mips.hardware.Coprocessor0
 
defaultBooleanSettingsValues - Static variable in class mars.Settings
Last resort default values for boolean settings; will use only if neither the Preferences nor the properties file work.
defaultMaxSteps - Static variable in class mars.venus.RunGoAction
 
defaultStringSettingsValues - Static variable in class mars.Settings
Last resort default values for String settings; will use only if neither the Preferences nor the properties file work.
deleteAsObserver() - Method in class mars.tools.FloatRepresentation
Delete this app/tool as an Observer of the attached register.
deleteAsObserver() - Method in class mars.tools.AbstractMarsToolAndApplication
Delete this app/tool as an Observer of MIPS Observables (memory and registers).
deleteAsObserver(Register) - Method in class mars.tools.AbstractMarsToolAndApplication
Delete this app/tool as an Observer of the specified MIPS register
deleteObserver(Observer) - Method in class mars.mips.hardware.Memory
Remove specified memory observers
deleteObservers() - Method in class mars.mips.hardware.Memory
Remove all memory observers
DELIMITER - Static variable in class mars.assembler.TokenTypes
 
description - Variable in class mars.mips.instructions.Instruction
Description of instruction for display to user
DIRECTIVE - Static variable in class mars.assembler.TokenTypes
 
Directives - class mars.assembler.Directives.
Class representing MIPS assembler directives.
disconnect() - Method in class mars.tools.AbstractMarsToolAndApplication.ConnectButton
 
displayCaretPosition(Point) - Method in class mars.venus.EditPane
Display cursor coordinates
DIVIDE_BY_ZERO_EXCEPTION - Static variable in class mars.simulator.Exceptions
 
DOUBLE - Static variable in class mars.assembler.Directives
 
DOUBLE_SIZE - Static variable in class mars.assembler.DataTypes
Number of bytes occupied by MIPS double is 8.

E

EditCopyAction - class mars.venus.EditCopyAction.
Action for the Edit -> Copy menu item
EditCopyAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.EditCopyAction
 
EditCutAction - class mars.venus.EditCutAction.
Action for the Edit -> Cut menu item
EditCutAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.EditCutAction
 
EDITED - Static variable in class mars.venus.FileStatus
open/saved edit window with unsaved edits
Editor - class mars.venus.Editor.
Manage the file being edited.
Editor(VenusUI) - Constructor for class mars.venus.Editor
Create editor.
EditPane - class mars.venus.EditPane.
Creates the tabbed areas in the UI and also created the internal windows that exist in them.
EditPane(VenusUI, JTextArea) - Constructor for class mars.venus.EditPane
Constructor for the EditPane class.
EditPasteAction - class mars.venus.EditPasteAction.
Action for the Edit -> Paste menu item
EditPasteAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.EditPasteAction
 
EditRedoAction - class mars.venus.EditRedoAction.
Action for the Edit -> Redo menu item
EditRedoAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.EditRedoAction
 
editsSavedOrAbandoned() - Method in class mars.venus.Editor
Called by several of the Action objects when there is potential loss of editing changes.
EditUndoAction - class mars.venus.EditUndoAction.
Action for the Edit -> Undo menu item
EditUndoAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.EditUndoAction
 
empty() - Method in class mars.simulator.BackStepper
Test whether there are steps that can be undone.
enabled() - Method in class mars.simulator.BackStepper
Determine whether execution "undo" steps are currently being recorded.
EPC - Static variable in class mars.mips.hardware.Coprocessor0
 
ERROR - Static variable in class mars.ErrorMessage
Constant to indicate this message is error not warning
ERROR - Static variable in class mars.assembler.TokenTypes
 
errorCount() - Method in class mars.ErrorList
Count of number of error messages in list.
ErrorList - class mars.ErrorList.
Maintains list of generated error messages, regardless of source (tokenizing, parsing, assembly, execution).
ErrorList() - Constructor for class mars.ErrorList
Constructor for ErrorList
ErrorMessage - class mars.ErrorMessage.
Represents occurrance of an error detected during tokenizing, assembly or simulation.
ErrorMessage(boolean, MIPSprogram, int, int, String) - Constructor for class mars.ErrorMessage
Constructor for ErrorMessage.
ErrorMessage(boolean, String, int, int, String) - Constructor for class mars.ErrorMessage
Constructor for ErrorMessage.
ErrorMessage(MIPSprogram, int, int, String) - Constructor for class mars.ErrorMessage
Constructor for ErrorMessage.
ErrorMessage(String, int, int, String) - Constructor for class mars.ErrorMessage
Constructor for ErrorMessage.
errors() - Method in class mars.ProcessingException
Produce the list of error messages.
errorsOccurred() - Method in class mars.ErrorList
Determine whether error has occured or not.
exampleFormat - Variable in class mars.mips.instructions.Instruction
Example usage of this instruction.
EXCEPTION - Static variable in class mars.simulator.Simulator
 
EXCEPTION_LEVEL - Static variable in class mars.mips.hardware.Coprocessor0
 
exceptionHandlerAddress - Static variable in class mars.mips.hardware.Memory
starting address for exception handlers: 0x80000180
Exceptions - class mars.simulator.Exceptions.
Represents an error/interrupt that occurs during execution (simulation).
Exceptions() - Constructor for class mars.simulator.Exceptions
 
ExecutePane - class mars.venus.ExecutePane.
Container for the execution-related windows.
ExecutePane(VenusUI, RegistersWindow, Coprocessor1Window, Coprocessor0Window) - Constructor for class mars.venus.ExecutePane
initialize the Execute pane with major components
exitCode - Static variable in class mars.Globals
MARS exit code -- useful with SYSCALL 17 when running from command line (not GUI)
ExtendedInstruction - class mars.mips.instructions.ExtendedInstruction.
ExtendedInstruction represents a MIPS extended (a.k.a pseudo) instruction.
ExtendedInstruction(String, String) - Constructor for class mars.mips.instructions.ExtendedInstruction
Constructor for ExtendedInstruction, where no instruction description is provided.
ExtendedInstruction(String, String, String) - Constructor for class mars.mips.instructions.ExtendedInstruction
Constructor for ExtendedInstruction.
EXTERN - Static variable in class mars.assembler.Directives
 
EXTERNAL_INTERRUPT - Static variable in class mars.simulator.Exceptions
The exception number is stored in coprocessor 0 cause register ($13)
extractOperator(String) - Method in class mars.mips.instructions.Instruction
Used by subclass constructors to extract operator mnemonic from the instruction example.

F

FileCloseAction - class mars.venus.FileCloseAction.
Action for the File -> Close menu item
FileCloseAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.FileCloseAction
 
fileErrorString - Static variable in class mars.util.SystemIO
String used for description of file error
FileExitAction - class mars.venus.FileExitAction.
Action for the File -> Exit menu item
FileExitAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.FileExitAction
 
fileExtensions - Static variable in class mars.Globals
List of accepted file extensions for MIPS assembly source files.
FilenameFinder - class mars.util.FilenameFinder.
Utility class to perform necessary file-related search operations.
FilenameFinder() - Constructor for class mars.util.FilenameFinder
 
FileNewAction - class mars.venus.FileNewAction.
Action for the File -> New menu item
FileNewAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.FileNewAction
 
FileOpenAction - class mars.venus.FileOpenAction.
Action for the File -> Open menu item
FileOpenAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.FileOpenAction
 
FilePrintAction - class mars.venus.FilePrintAction.
Action for the File -> Print menu item
FilePrintAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.FilePrintAction
 
FileSaveAction - class mars.venus.FileSaveAction.
Action for the File -> Save menu item
FileSaveAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.FileSaveAction
 
FileSaveAsAction - class mars.venus.FileSaveAsAction.
Action for the File -> Save As menu item
FileSaveAsAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.FileSaveAsAction
 
FileStatus - class mars.venus.FileStatus.
Used to store and return information on the status of the current ASM file that is being edited in the program.
FileStatus() - Constructor for class mars.venus.FileStatus
 
finished() - Method in class mars.simulator.SwingWorker
Called on the event dispatching thread (not on the worker thread) after the construct method has returned.
fixSymbolTableAddress(int, int) - Method in class mars.assembler.SymbolTable
Fix address in symbol table entry.
FLOAT - Static variable in class mars.assembler.Directives
 
FLOAT_SIZE - Static variable in class mars.assembler.DataTypes
Number of bytes occupied by MIPS float is 4.
FLOATING_POINT_OVERFLOW - Static variable in class mars.simulator.Exceptions
 
FLOATING_POINT_UNDERFLOW - Static variable in class mars.simulator.Exceptions
 
FloatRepresentation - class mars.tools.FloatRepresentation.
Tool to help students learn about IEEE 754 representation of 32 bit floating point values.
FloatRepresentation() - Constructor for class mars.tools.FloatRepresentation
Simple constructor, likely used by the MARS Tools menu mechanism
FloatRepresentation(String, String) - Constructor for class mars.tools.FloatRepresentation
Simple constructor, likely used to run a stand-alone memory reference visualizer.
flush() - Method in class mars.venus.HardcopyWriter
This is the flush( ) method that all Writer subclasses must implement.
font - Variable in class mars.venus.HardcopyWriter
 
fontsize - Variable in class mars.venus.HardcopyWriter
 
formatNumber(double, int) - Static method in class mars.venus.NumberDisplayBaseChooser
Produces a string form of a double given the value and the numerical base to convert it to.
formatNumber(float, int) - Static method in class mars.venus.NumberDisplayBaseChooser
Produces a string form of a float given the value and the numerical base to convert it to.
formatNumber(int) - Method in class mars.venus.NumberDisplayBaseChooser
Produces a string form of a number given the value.
formatNumber(int, int) - Static method in class mars.venus.NumberDisplayBaseChooser
Produces a string form of an integer given the value and the numerical base to convert it to.
formatUnsignedInteger(int) - Method in class mars.venus.NumberDisplayBaseChooser
Produces a string form of an unsigned integer given the value.
formatUnsignedInteger(int, int) - Static method in class mars.venus.NumberDisplayBaseChooser
Produces a string form of an unsigned given the value and the numerical base to convert it to.
FP_REGISTER_NAME - Static variable in class mars.assembler.TokenTypes
 

G

generateErrorAndWarningReport() - Method in class mars.ErrorList
Produce report containing both warnings and errors, warnings first.
generateErrorReport() - Method in class mars.ErrorList
Produce error report.
generateWarningReport() - Method in class mars.ErrorList
Produce warning report.
get() - Method in class mars.simulator.SwingWorker
Return the value created by the construct method.
get() - Static method in class mars.venus.FileStatus
Get file status
get(int) - Method in class mars.assembler.TokenList
Returns requested token given position number (starting at 0).
get(int, int) - Method in class mars.mips.hardware.Memory
Starting at the given word address, read the given number of bytes (max 4).
getAccessType() - Method in class mars.mips.hardware.AccessNotice
Get the access type: READ or WRITE.
getAddress() - Method in class mars.ProgramStatement
Produces Text Segment address where the binary machine statement is stored.
getAddress() - Method in class mars.assembler.Symbol
Returns the address of the the Symbol.
getAddress() - Method in class mars.mips.hardware.MemoryAccessNotice
Fetch the memory address that was accessed.
getAddress() - Method in class mars.mips.hardware.AddressErrorException
Get the erroneous memory address.
getAddress(String) - Method in class mars.assembler.SymbolTable
Method to return the address associated with the given label.
getAddressDisplayBase() - Method in class mars.venus.ExecutePane
Retrieve the number system base for displaying memory addresses
getAddressDisplayBaseChooser() - Method in class mars.venus.ExecutePane
Retrieve component used to set numerical base (10 or 16) of address display.
getAddressDisplayBaseMenuItem() - Method in class mars.venus.VenusUI
Get reference to settings menu item for display base of memory/register values.
getAddressLocalOrGlobal(String) - Method in class mars.assembler.SymbolTable
Method to return the address associated with the given label.
getAllSymbols() - Method in class mars.assembler.SymbolTable
For obtaining all the Symbols.
getAssembleAllEnabled() - Method in class mars.Settings
Setting for whether the assemble operation applies only to the file currently open in the editor or whether it applies to all files in that file's directory (primitive project capability).
getAssembleOnOpenEnabled() - Method in class mars.Settings
Setting for whether selected program will be automatically assembled upon opening.
getAssembleTextArea() - Method in class mars.venus.MessagesPane
Returns component used to display assembler messages
getBackStepper() - Method in class mars.MIPSprogram
Returns BackStepper associated with this program.
getBackSteppingEnabled() - Method in class mars.Settings
Return whether backstepping is permitted at this time.
getBareMachineEnabled() - Method in class mars.Settings
Setting for whether user programs limited to "bare machine" formatted basic instructions.
getBase() - Method in class mars.venus.NumberDisplayBaseChooser
Retrieve the current number base.
getBase(boolean) - Static method in class mars.venus.NumberDisplayBaseChooser
Return the number base corresponding to the specified setting.
getBasicAssemblyStatement() - Method in class mars.ProgramStatement
Produces Basic Assembly statement for this MIPS source statement.
getBasicIntructionTemplateList() - Method in class mars.mips.instructions.ExtendedInstruction
Get ArrayList of Strings that represent list of templates for basic instructions generated by this extended instruction.
getBinaryStatement() - Method in class mars.ProgramStatement
Produces 32-bit binary machine statement as int.
getBreakpointCount() - Method in class mars.venus.TextSegmentWindow
Returns number of breakpoints currently set.
getByte(int) - Method in class mars.mips.hardware.Memory
Reads specified Memory byte into low order 8 bits of int.
getByte(int, int) - Static method in class mars.util.Binary
Gets the specified byte of the specified value.
getByteOrder() - Method in class mars.mips.hardware.Memory
Retrieve memory byte order.
getCharactersPerLine() - Method in class mars.venus.HardcopyWriter
Return the number of columns of characters that fit on the page
getCodeHighlighting() - Method in class mars.venus.TextSegmentWindow
 
getConditionFlag(int) - Static method in class mars.mips.hardware.Coprocessor1
Get value of specified condition flag (0-7).
getConditionFlagCount() - Static method in class mars.mips.hardware.Coprocessor1
Get count of condition flags.
getConditionFlags() - Static method in class mars.mips.hardware.Coprocessor1
Get array of condition flags (0-7).
getCoprocessor0Window() - Method in class mars.venus.RegistersPane
Return component containing coprocessor 0 (exceptions) register set.
getCoprocessor0Window() - Method in class mars.venus.ExecutePane
Access the coprocessor0 values window.
getCoprocessor1Window() - Method in class mars.venus.RegistersPane
Return component containing coprocessor 1 (floating point) register set.
getCoprocessor1Window() - Method in class mars.venus.ExecutePane
Access the coprocessor1 values window.
getCurrentDirectoryPath() - Method in class mars.venus.EditPane
Get the current directory path
getDataSegmentWindow() - Method in class mars.venus.ExecutePane
Access the data segment window.
getDataSymbols() - Method in class mars.assembler.SymbolTable
For obtaining the Data Symbols.
getDescription() - Method in class mars.assembler.Directives
Get description of this Directives object
getDescription() - Method in class mars.mips.instructions.Instruction
Get string describing the instruction.
getDirectiveList() - Static method in class mars.assembler.Directives
Produces List of Directive objects
getDisplayAddressesInHex() - Method in class mars.Settings
Setting for whether Addresses in the Execute pane will be displayed in hexadecimal.
getDisplayValuesInHex() - Method in class mars.Settings
Setting for whether values in the Execute pane will be displayed in hexadecimal.
getDoubleFromRegister(int) - Static method in class mars.mips.hardware.Coprocessor1
Gets the double value stored in the given FPU register.
getDoubleFromRegister(String) - Static method in class mars.mips.hardware.Coprocessor1
Gets the double value stored in the given FPU register.
getEditPane() - Method in class mars.venus.MainPane
returns component containing text editor
getErrorList() - Method in class mars.assembler.Assembler
Get list of assembler errors and warnings
getErrors() - Method in class mars.assembler.Tokenizer
Fetch this Tokenizer's error list.
getExampleFormat() - Method in class mars.mips.instructions.Instruction
Get string descriptor of instruction's format.
getExceptionHandler() - Method in class mars.Settings
Name of currently selected exception handler file.
getExceptionHandlerEnabled() - Method in class mars.Settings
Setting for whether the currently selected exception handler (a MIPS source file) will be automatically included in each assemble operation.
getExecutePane() - Method in class mars.venus.MainPane
returns component containing execution-time display
getExtendedAssemblerEnabled() - Method in class mars.Settings
Setting for whether user programs can use pseudo-instructions or extended addressing modes or alternative instruction formats (all are implemented as pseudo-instructions).
getExtendedAssemblerEnabled() - Static method in class mars.venus.RunAssembleAction
 
getExtension(File) - Static method in class mars.util.FilenameFinder
Get the filename extension of the specified File.
getExternalTools() - Static method in class mars.Globals
Get list of MarsTools that reside outside the MARS distribution.
getFile() - Static method in class mars.venus.FileStatus
Returns the ASM file.
getFileErrorMessage() - Static method in class mars.util.SystemIO
Retrieve file operation or error message
getFileFilter(ArrayList, String) - Static method in class mars.util.FilenameFinder
Get a FileFilter that will filter files based on the given list of filename extensions.
getFileFilter(ArrayList, String, boolean) - Static method in class mars.util.FilenameFinder
Get a FileFilter that will filter files based on the given list of filename extensions.
getFileFilter(String, String) - Static method in class mars.util.FilenameFinder
Get a FileFilter that will filter files based on the given list of filename extensions.
getFileFilter(String, String, boolean) - Static method in class mars.util.FilenameFinder
Get a FileFilter that will filter files based on the given list of filename extensions.
getFilename() - Method in class mars.MIPSprogram
Produces name of associated source code file.
getFilename() - Method in class mars.ErrorMessage
Produce name of file containing error.
getFilenameList(ArrayList, ArrayList) - Static method in class mars.util.FilenameFinder
Return list of file names.
getFilenameList(ArrayList, String) - Static method in class mars.util.FilenameFinder
Return list of file names.
getFilenameList(ClassLoader, String, ArrayList) - Static method in class mars.util.FilenameFinder
Locate files and return list of file names.
getFilenameList(ClassLoader, String, String) - Static method in class mars.util.FilenameFinder
Locate files and return list of file names.
getFilenameList(String, ArrayList) - Static method in class mars.util.FilenameFinder
Locate files and return list of file names.
getFilenameList(String, String) - Static method in class mars.util.FilenameFinder
Locate files and return list of file names.
getFloatFromRegister(int) - Static method in class mars.mips.hardware.Coprocessor1
Gets the float value stored in the given FPU register.
getFloatFromRegister(String) - Static method in class mars.mips.hardware.Coprocessor1
Gets the float value stored in the given FPU register.
getGui() - Static method in class mars.Globals
 
getHalf(int) - Method in class mars.mips.hardware.Memory
Starting at the given word address, read a 2 byte word into lower 16 bits of int.
getHelpComponent() - Method in class mars.tools.MemoryReferenceVisualization
Overrides default method, to provide a Help button for this tool/app.
getHelpComponent() - Method in class mars.tools.AbstractMarsToolAndApplication
Override this method to provide a JComponent (probably a JButton) of your choice to be placed just left of the Close/Exit button.
getInitialProgramCounter() - Static method in class mars.mips.hardware.RegisterFile
For returning the program counter's initial (reset) value.
getInputString(String) - Method in class mars.venus.MessagesPane
Method used by the SystemIO class to get interactive user input requested by a running MIPS program (e.g.
getInstance() - Static method in class mars.mips.hardware.Memory
Returns the unique Memory instance, which becomes in essence global.
getInstance() - Static method in class mars.simulator.Simulator
Returns the Simulator object
getInstance() - Static method in class mars.venus.RunSpeedPanel
Retrieve the run speed panel object
getInstruction() - Method in class mars.ProgramStatement
Produces Instruction object corresponding to this statement's operator.
getInstructionFormat() - Method in class mars.mips.instructions.BasicInstruction
Gets the operand format of the instruction.
getInstructionLength() - Method in class mars.mips.instructions.ExtendedInstruction
Get length in bytes that this extended instruction requires in its binary form.
getInstructionLength() - Method in class mars.mips.instructions.Instruction
Get length in bytes that this instruction requires in its binary form.
getInstructionList() - Method in class mars.mips.instructions.InstructionSet
Retrieve the current instruction set.
getLabelsWindow() - Method in class mars.venus.ExecutePane
Access the label values window.
getLabelWindowVisibility() - Method in class mars.Settings
Default concerning whether or not to display the Labels Window -- symbol table.
getLength() - Method in class mars.mips.hardware.MemoryAccessNotice
Fetch the length in bytes of the access operation (4,2,1).
getLengthInBytes(Directives) - Static method in class mars.assembler.DataTypes
Get length in bytes for numeric MIPS directives.
getLine() - Method in class mars.ErrorMessage
Produce line number of error.
getLineNumbersList() - Method in class mars.venus.EditPane
Form string with source code line numbers.
getLinesPerPage() - Method in class mars.venus.HardcopyWriter
Return the number of lines that fit on a page
getLocalSymbolTable() - Method in class mars.MIPSprogram
Returns SymbolTable associated with this program.
getMachineList() - Method in class mars.MIPSprogram
Produces list of machine statements that are assembled from the program.
getMachineStatement() - Method in class mars.ProgramStatement
Produces binary machine statement as 32 character string, all '0' and '1' chars.
getMainPane() - Method in class mars.venus.VenusUI
Get reference to messages pane associated with this GUI.
getMessage() - Method in class mars.ErrorMessage
Produce error message.
getMessagesPane() - Method in class mars.venus.VenusUI
Get reference to messages pane associated with this GUI.
getMIPSprogramsToAssemble() - Static method in class mars.venus.RunAssembleAction
 
getName() - Method in class mars.assembler.Symbol
Returns the label of the the Symbol.
getName() - Method in class mars.mips.hardware.Register
Returns the name of the Register.
getName() - Method in class mars.mips.instructions.Instruction
Get operation mnemonic
getName() - Method in class mars.mips.instructions.syscalls.SyscallNumberOverride
Get the service name as a String.
getName() - Method in class mars.mips.instructions.syscalls.AbstractSyscall
Return the name you have chosen for this syscall.
getName() - Method in interface mars.mips.instructions.syscalls.Syscall
Return a name you have chosen for this syscall.
getName() - Method in class mars.tools.ScavengerHunt
 
getName() - Method in class mars.tools.MarsBot
 
getName() - Method in class mars.tools.IntroToTools
Required method to return Tool name.
getName() - Method in class mars.tools.MemoryReferenceVisualization
Required MarsTool method to return Tool name.
getName() - Method in class mars.tools.FloatRepresentation
Fetch tool name (for display in MARS Tools menu)
getName() - Method in interface mars.tools.MarsTool
Return a name you have chosen for this tool.
getName() - Method in class mars.tools.AbstractMarsToolAndApplication
Required MarsTool method to return Tool name.
getName() - Method in class mars.tools.CacheSimulator
Required MarsTool method to return Tool name.
getName() - Static method in class mars.venus.FileStatus
Returns the name of the file.
getNextDefaultFilename() - Method in class mars.venus.Editor
Generates a default file name
getNumber() - Method in class mars.mips.hardware.Register
Returns the number of the Register.
getNumber() - Method in class mars.mips.instructions.syscalls.SyscallNumberOverride
Get the new service number as an int.
getNumber() - Method in class mars.mips.instructions.syscalls.AbstractSyscall
Return the assigned service number.
getNumber() - Method in interface mars.mips.instructions.syscalls.Syscall
Return the assigned service number.
getNumber(String) - Static method in class mars.mips.hardware.RegisterFile
For getting the number representation of the register.
getNumber(String) - Static method in class mars.mips.hardware.Coprocessor0
For getting the number representation of the register.
getOperand(int) - Method in class mars.ProgramStatement
Produces operand value from given array position (first operand is position 0).
getOperands() - Method in class mars.ProgramStatement
Produces int array of operand values for this statement.
getOperationMask() - Method in class mars.mips.instructions.BasicInstruction
Gets the 32-character operation mask.
getOriginalTokenList() - Method in class mars.ProgramStatement
Produces token list generated from original source statement.
getParsedList() - Method in class mars.MIPSprogram
Produces existing list of parsed source code statements.
getPosition() - Method in class mars.ErrorMessage
Produce position within erroneous line.
getProgramCounter() - Static method in class mars.mips.hardware.RegisterFile
For returning the program counters value.
getPropertyEntry(String, String) - Static method in class mars.Globals
Read and return property file value (if any) for requested property.
getRawWord(int) - Method in class mars.mips.hardware.Memory
Starting at the given word address, read a 4 byte word as an int.
getRegister(String) - Static method in class mars.mips.hardware.Coprocessor1
Get register object corresponding to given name.
getRegister(String) - Static method in class mars.mips.hardware.Coprocessor0
Get register object corresponding to given name.
getRegisterName() - Method in class mars.mips.hardware.RegisterAccessNotice
Fetch the register number of register accessed.
getRegisterNumber(String) - Static method in class mars.mips.hardware.Coprocessor1
For getting the number representation of the FPU register.
getRegisters() - Static method in class mars.mips.hardware.RegisterFile
For returning the set of registers.
getRegisters() - Static method in class mars.mips.hardware.Coprocessor1
For returning the set of registers.
getRegisters() - Static method in class mars.mips.hardware.Coprocessor0
For returning the set of registers.
getRegistersPane() - Method in class mars.venus.VenusUI
Get reference to registers pane associated with this GUI.
getRegistersWindow() - Method in class mars.venus.RegistersPane
Return component containing integer register set.
getRegistersWindow() - Method in class mars.venus.ExecutePane
Access the register values window.
getReset() - Static method in class mars.venus.VenusUI
To find out whether the register values are reset.
getResetValue() - Method in class mars.mips.hardware.Register
Returns the reset value of the Register.
getRunAssembleAction() - Method in class mars.venus.VenusUI
Return reference tothe Run->Assemble item's action.
getRunSpeed() - Method in class mars.venus.RunSpeedPanel
returns current run speed setting, in instructions/second.
getRunTextArea() - Method in class mars.venus.MessagesPane
Returns component used to display runtime messages
getSettings() - Static method in class mars.Globals
 
getSimulationCode() - Method in class mars.mips.instructions.BasicInstruction
Gets the SimulationCode object.
getSize() - Method in class mars.assembler.SymbolTable
Get the count of entries currently in the table.
getSortedBreakPointsArray() - Method in class mars.venus.TextSegmentWindow
Returns array of current breakpoints, each represented by a MIPS program counter address.
getSource() - Method in class mars.ProgramStatement
Produces MIPS source statement.
getSource() - Method in class mars.venus.EditPane
Get source code text
getSourceFile() - Method in class mars.ProgramStatement
Produces String name of the source file containing this statement.
getSourceLine() - Method in class mars.ProgramStatement
Produces line number of MIPS source statement.
getSourceLine() - Method in class mars.assembler.Token
Produces line number of MIPS program of this token.
getSourceLine(int) - Method in class mars.MIPSprogram
Produces specified line of MIPS source program.
getSourceLineCount() - Method in class mars.venus.EditPane
Calculate and return number of lines in source code text.
getSourceList() - Method in class mars.MIPSprogram
Produces list of source statements that comprise the program.
getSourceMIPSprogram() - Method in class mars.ProgramStatement
Produces MIPSprogram object representing the source file containing this statement.
getSourceMIPSprogram() - Method in class mars.assembler.Token
Produces MIPSprogram object associated with this token.
getStarted() - Static method in class mars.venus.VenusUI
To find out whether MIPS program is currently executing.
getStartPos() - Method in class mars.assembler.Token
Produces position within source line of this token.
getStatement(int) - Method in class mars.mips.hardware.Memory
Gets ProgramStatement from Text Segment.
getStrippedTokenList() - Method in class mars.ProgramStatement
Produces token list stripped of all but operator and operand tokens.
getSymbol(String) - Method in class mars.assembler.SymbolTable
Produce Symbol object from symbol table that corresponds to given String.
getSymbolGivenAddress(String) - Method in class mars.assembler.SymbolTable
Produce Symbol object from symbol table that has the given address.
getSymbolGivenAddressLocalOrGlobal(String) - Method in class mars.assembler.SymbolTable
Produce Symbol object from either local or global symbol table that has the given address.
getSyscallOverrides() - Method in class mars.Globals
Read any syscall number assignment overrides from config file.
getTextSegmentWindow() - Method in class mars.venus.ExecutePane
Access the text segment window.
getTextSymbols() - Method in class mars.assembler.SymbolTable
For obtaining the Text Symbols.
getThread() - Method in class mars.mips.hardware.AccessNotice
Get reference to thread that created this notice
getTokenList() - Method in class mars.MIPSprogram
Produces list of tokens that comprise the program.
getTokenList() - Method in class mars.mips.instructions.Instruction
Get TokenList corresponding to correct instruction syntax.
getType() - Method in class mars.assembler.Symbol
Finds the type of symbol, text or data.
getType() - Method in class mars.assembler.Token
Produces token type of this token.
getType() - Method in class mars.mips.hardware.AddressErrorException
Get the exception type (load or store).
getUndoManager() - Method in class mars.venus.EditPane
get the manager in charge of UnDo operations
getUserRegister(String) - Static method in class mars.mips.hardware.RegisterFile
Get register object corresponding to given name.
getValue() - Method in class mars.assembler.Token
Produces source code of this token.
getValue() - Method in class mars.mips.hardware.MemoryAccessNotice
Fetch the value of the access operation (the value read or written).
getValue() - Method in class mars.mips.hardware.Register
Returns the value of the Register.
getValue() - Method in class mars.simulator.SwingWorker
Get the value produced by the worker thread, or null if it hasn't been constructed yet.
getValue(int) - Static method in class mars.mips.hardware.RegisterFile
Returns the value of the register who's number is num.
getValue(int) - Static method in class mars.mips.hardware.Coprocessor1
Returns the value of the FPU register who's number is num.
getValue(int) - Static method in class mars.mips.hardware.Coprocessor0
Returns the value of the register who's number is num.
getValueDisplayBase() - Method in class mars.venus.ExecutePane
Retrieve the number system base for displaying values (mem/register contents)
getValueDisplayBaseChooser() - Method in class mars.venus.ExecutePane
Retrieve component used to set numerical base (10 or 16) of data value display.
getValueDisplayBaseMenuItem() - Method in class mars.venus.VenusUI
Get reference to settings menu item for display base of memory/register values.
getWord(int) - Method in class mars.mips.hardware.Memory
Starting at the given word address, read a 4 byte word as an int.
globalPointer - Static variable in class mars.mips.hardware.Memory
base address for storing globals
Globals - class mars.Globals.
Collection of globally-available data structures.
Globals() - Constructor for class mars.Globals
 
GLOBL - Static variable in class mars.assembler.Directives
 
go() - Method in class mars.tools.AbstractMarsToolAndApplication
Run the simulator as stand-alone application.
GuiAction - class mars.venus.GuiAction.
parent class for Action subclasses to be defined for every menu/toolbar option.
GuiAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.GuiAction
 

H

HALF - Static variable in class mars.assembler.Directives
 
HALF_SIZE - Static variable in class mars.assembler.DataTypes
Number of bytes occupied by MIPS halfword is 2.
HardcopyWriter - class mars.venus.HardcopyWriter.
 
HardcopyWriter.PrintCanceledException - exception mars.venus.HardcopyWriter.PrintCanceledException.
This is the exception class that the HardcopyWriter constructor throws when the user clicks "Cancel" in the print dialog box.
HardcopyWriter.PrintCanceledException(String) - Constructor for class mars.venus.HardcopyWriter.PrintCanceledException
 
HardcopyWriter(Frame, String, int, double, double, double, double) - Constructor for class mars.venus.HardcopyWriter
The constructor for this class has a bunch of arguments: The frame argument is required for all printing in Java.
headerfont - Variable in class mars.venus.HardcopyWriter
 
headermetrics - Variable in class mars.venus.HardcopyWriter
 
headery - Variable in class mars.venus.HardcopyWriter
 
heapAddress - Static variable in class mars.mips.hardware.Memory
 
heapBaseAddress - Static variable in class mars.mips.hardware.Memory
base address for heap: 0x10040000 (I think from SPIM not MIPS)
height - Variable in class mars.venus.HardcopyWriter
 
HelpAboutAction - class mars.venus.HelpAboutAction.
Action for the Help -> About menu item
HelpAboutAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.HelpAboutAction
 
HelpHelpAction - class mars.venus.HelpHelpAction.
Action for the Help -> Help menu item
HelpHelpAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.HelpHelpAction
 
helpPath - Static variable in class mars.Globals
Path to folder that contains help text
HEXADECIMAL - Static variable in class mars.venus.NumberDisplayBaseChooser
 
hexStringToBinaryString(String) - Static method in class mars.util.Binary
Translate String consisting of hexadecimal digits into String consisting of corresponding binary digits ('1's and '0's).
highlightStepAtAddress(int) - Method in class mars.venus.TextSegmentWindow
Highlights the source code line whose address matches the given text segment address.
highlightStepAtPC() - Method in class mars.venus.TextSegmentWindow
Highlights the source code line whose address matches the current program counter value.
highOrderLongToInt(long) - Static method in class mars.util.Binary
Returns int representing the bit values of the high order 32 bits of given 64 bit long value.

I

I_BRANCH_FORMAT - Static variable in class mars.mips.instructions.BasicInstructionFormat
 
I_FORMAT - Static variable in class mars.mips.instructions.BasicInstructionFormat
 
IDENTIFIER - Static variable in class mars.assembler.TokenTypes
 
imagesPath - Static variable in class mars.Globals
Path to folder that contains images
incrementPC() - Static method in class mars.mips.hardware.RegisterFile
Method to increment the Program counter in the general case (not a jump or branch).
inDataSegment(int) - Static method in class mars.mips.hardware.Memory
Handy little utility to find out if given address is in MARS data segment (starts at Memory.dataSegmentBaseAddress).
initialize() - Static method in class mars.Globals
Method called once upon system initialization to create the global data structures.
initializePostGUI() - Method in class mars.tools.MemoryReferenceVisualization
The only post-GUI initialization is to create the initial Grid object based on the default settings of the various combo boxes.
initializePostGUI() - Method in class mars.tools.AbstractMarsToolAndApplication
Method that will be called once just after the GUI is constructed in the go() and action() methods.
initializePostGUI() - Method in class mars.tools.CacheSimulator
The only post-GUI initialization is to create the initial cache object based on the default settings of the various combo boxes.
initializePreGUI() - Method in class mars.tools.MemoryReferenceVisualization
Initialize all JComboBox choice structures not already initialized at declaration.
initializePreGUI() - Method in class mars.tools.AbstractMarsToolAndApplication
Method that will be called once just before the GUI is constructed in the go() and action() methods.
initializePreGUI() - Method in class mars.tools.CacheSimulator
Initialize all JComboBox choice structures not already initialized at declaration.
initializeProgramCounter(int) - Static method in class mars.mips.hardware.RegisterFile
For initializing the Program Counter.
inKernelDataSegment(int) - Static method in class mars.mips.hardware.Memory
Handy little utility to find out if given address is in MARS kernel segment (starts at Memory.kernelDataSegmentBaseAddress).
inKernelTextSegment(int) - Static method in class mars.mips.hardware.Memory
Handy little utility to find out if given address is in MARS kernel text segment (starts at Memory.kernelTextBaseAddress).
inSteppedExecution() - Method in class mars.MIPSprogram
Will be true only while in process of simulating a program statement in step mode (e.g.
Instruction - class mars.mips.instructions.Instruction.
Base class to represent member of MIPS instruction set.
INSTRUCTION_LENGTH - Static variable in class mars.mips.instructions.Instruction
Length in bytes of a machine instruction.
INSTRUCTION_LENGTH_BITS - Static variable in class mars.mips.instructions.Instruction
 
Instruction() - Constructor for class mars.mips.instructions.Instruction
 
instructionSet - Static variable in class mars.Globals
The set of implemented MIPS instructions.
InstructionSet - class mars.mips.instructions.InstructionSet.
The list of Instruction objects, each of which represents a MIPS instruction.
InstructionSet() - Constructor for class mars.mips.instructions.InstructionSet
Creates a new InstructionSet object.
INTEGER_16 - Static variable in class mars.assembler.TokenTypes
 
INTEGER_32 - Static variable in class mars.assembler.TokenTypes
 
INTEGER_5 - Static variable in class mars.assembler.TokenTypes
 
interrupt() - Method in class mars.simulator.SwingWorker
A new method that interrupts the worker thread.
inTextSegment(int) - Static method in class mars.mips.hardware.Memory
Handy little utility to find out if given address is in MARS text segment (starts at Memory.textBaseAddress).
IntroToTools - class mars.tools.IntroToTools.
The "hello world" of MarsTools!
IntroToTools() - Constructor for class mars.tools.IntroToTools
Simple constructor, likely used by the MARS Tools menu mechanism
IntroToTools(String, String) - Constructor for class mars.tools.IntroToTools
Simple constructor, likely used to run a stand-alone memory reference visualizer.
intToBinaryString(int) - Static method in class mars.util.Binary
Translate int value into a String consisting of '1's and '0's.
intToBinaryString(int, int) - Static method in class mars.util.Binary
Translate int value into a String consisting of '1's and '0's.
intToHexString(int) - Static method in class mars.util.Binary
Prefix a hexadecimal-indicating string "0x" to the string which is returned by the method "Integer.toHexString".
InvalidRegisterAccessException - exception mars.mips.hardware.InvalidRegisterAccessException.
Represents attempt to access double precision register using an odd (e.g.
InvalidRegisterAccessException() - Constructor for class mars.mips.hardware.InvalidRegisterAccessException
Constructor for IllegalRegisterException.
isAssembled() - Static method in class mars.venus.FileStatus
Tells whether the file has been assembled.
isBeingUsedAsAMarsTool - Variable in class mars.tools.AbstractMarsToolAndApplication
 
isConnected() - Method in class mars.tools.AbstractMarsToolAndApplication.ConnectButton
 
isEdited() - Static method in class mars.venus.FileStatus
Tells whether the file has been edited since it has been saved.
isEmpty() - Method in class mars.assembler.TokenList
Returns empty/non-empty status of list.
isFloatingDirective(Directives) - Static method in class mars.assembler.Directives
Lets you know whether given directive is for floating number (FLOAT,DOUBLE).
isFloatingTokenType(TokenTypes) - Static method in class mars.assembler.TokenTypes
Lets you know if given tokentype is for floating point numbers (REAL_NUMBER).
isHex(String) - Static method in class mars.util.Binary
Parsing method to see if a string represents a hex number.
isIntegerDirective(Directives) - Static method in class mars.assembler.Directives
Lets you know whether given directive is for integer (WORD,HALF,BYTE).
isIntegerTokenType(TokenTypes) - Static method in class mars.assembler.TokenTypes
Lets you know if given tokentype is for integers (INTGER_5, INTEGER_16, INTEGER_32).
isObserving() - Method in class mars.tools.AbstractMarsToolAndApplication
Query method to let you know if the tool/app is (or could be) currently "observing" any MIPS resources.
isOctal(String) - Static method in class mars.util.Binary
Parsing method to see if a string represents an octal number.
isSaved() - Static method in class mars.venus.FileStatus
Tells whether the file has been saved.
isWarning() - Method in class mars.ErrorMessage
Determine whether this message represents error or warning.

J

J_FORMAT - Static variable in class mars.mips.instructions.BasicInstructionFormat
 
job - Variable in class mars.venus.HardcopyWriter
 
jobname - Variable in class mars.venus.HardcopyWriter
 

K

KDATA - Static variable in class mars.assembler.Directives
 
kernelBaseAddress - Static variable in class mars.mips.hardware.Memory
kernel boundary.
kernelDataBaseAddress - Static variable in class mars.mips.hardware.Memory
base address for kernel data segment: 0x90000000
kernelDataSegmentLimitAddress - Static variable in class mars.mips.hardware.Memory
 
kernelHighAddress - Static variable in class mars.mips.hardware.Memory
highest address acessible in kernel mode.
kernelTextBaseAddress - Static variable in class mars.mips.hardware.Memory
base address for kernel text segment: 0x80000000
kernelTextLimitAddress - Static variable in class mars.mips.hardware.Memory
 
keyPressed(KeyEvent) - Method in class mars.tools.AbstractMarsToolAndApplication.EnterKeyListener
 
KTEXT - Static variable in class mars.assembler.Directives
 

L

LabelsWindow - class mars.venus.LabelsWindow.
Represents the Labels window, which is a type of JInternalFrame.
LabelsWindow() - Constructor for class mars.venus.LabelsWindow
Constructor for the Labels (symbol table) window.
LEFT_PAREN - Static variable in class mars.assembler.TokenTypes
 
lineascent - Variable in class mars.venus.HardcopyWriter
 
lineheight - Variable in class mars.venus.HardcopyWriter
 
linenum - Variable in class mars.venus.HardcopyWriter
 
lines_per_page - Variable in class mars.venus.HardcopyWriter
 
LITTLE_ENDIAN - Static variable in class mars.mips.hardware.Memory
Constant representing byte order of each memory word.
loadPropertiesFromFile(String) - Static method in class mars.util.PropertiesFile
Produce Properties (a Hashtable) object containing key-value pairs from specified properties file.
longToBinaryString(long) - Static method in class mars.util.Binary
Translate long value into a String consisting of '1's and '0's.
longToBinaryString(long, int) - Static method in class mars.util.Binary
Translate long value into a String consisting of '1's and '0's.
LOW_DOUBLE_VALUE - Static variable in class mars.assembler.DataTypes
Largest magnitude negative value that can be stored in a MIPS double(negative of the max)
LOW_FLOAT_VALUE - Static variable in class mars.assembler.DataTypes
Largest magnitude negative value that can be stored in a MIPS float (negative of the max)
lowOrderLongToInt(long) - Static method in class mars.util.Binary
Returns int representing the bit values of the low order 32 bits of given 64 bit long value.

M

main(String[]) - Static method in class mars.tools.IntroToTools
Main provided for pure stand-alone use.
main(String[]) - Static method in class mars.tools.MemoryReferenceVisualization
Main provided for pure stand-alone use.
main(String[]) - Static method in class mars.tools.FloatRepresentation
Main provided for pure stand-alone use.
main(String[]) - Static method in class mars.tools.CacheSimulator
Main provided for pure stand-alone use.
main(String[]) - Static method in class mars.venus.HardcopyWriter
A program that prints the specified file using HardcopyWriter
MainPane - class mars.venus.MainPane.
Creates the tabbed areas in the UI and also created the internal windows that exist in them.
MainPane(VenusUI, JTextArea, RegistersWindow, Coprocessor1Window, Coprocessor0Window) - Constructor for class mars.venus.MainPane
Constructor for the MainPane class.
mainUI - Variable in class mars.venus.GuiAction
 
makeTemplateSubstitutions(MIPSprogram, String, TokenList) - Static method in class mars.mips.instructions.ExtendedInstruction
Given a basic instruction template and the list of tokens from an extended instruction statement, substitute operands from the token list appropriately into the template to generate the basic statement.
mars - package mars
 
mars.assembler - package mars.assembler
 
mars.mips.hardware - package mars.mips.hardware
 
mars.mips.instructions - package mars.mips.instructions
 
mars.mips.instructions.syscalls - package mars.mips.instructions.syscalls
 
mars.simulator - package mars.simulator
 
mars.tools - package mars.tools
 
mars.util - package mars.util
 
mars.venus - package mars.venus
 
MarsBot - class mars.tools.MarsBot.
Simple Demo of Mars tool capability
MarsBot() - Constructor for class mars.tools.MarsBot
 
MarsLaunch - class mars.MarsLaunch.
Launch the Mars application
MarsLaunch(String[]) - Constructor for class mars.MarsLaunch
 
MarsSplashScreen - class mars.MarsSplashScreen.
Produces MARS splash screen.
Adapted from http://www.java-tips.org/content/view/1267/2/
MarsSplashScreen(int) - Constructor for class mars.MarsSplashScreen
 
MarsTool - interface mars.tools.MarsTool.
Interface for any tool that interacts with an executing MIPS program.
MATCH_ALL_EXTENSIONS - Static variable in class mars.util.FilenameFinder
 
matchDirective(String) - Static method in class mars.assembler.Directives
Find Directive object, if any, which matches the given String.
matchOperator(String) - Method in class mars.mips.instructions.InstructionSet
Given an operator mnemonic, will return the corresponding Instruction object(s) from the instruction set.
matchTokenType(String) - Static method in class mars.assembler.TokenTypes
Classifies the given token into one of the MIPS types.
MAX_BYTE_VALUE - Static variable in class mars.assembler.DataTypes
Maximum value that can be stored in a MIPS byte is 27-1
MAX_DOUBLE_VALUE - Static variable in class mars.assembler.DataTypes
Maximum positive finite value that can be stored in a MIPS double is same as Java Double
MAX_FLOAT_VALUE - Static variable in class mars.assembler.DataTypes
Maximum positive finite value that can be stored in a MIPS float is same as Java Float
MAX_HALF_VALUE - Static variable in class mars.assembler.DataTypes
Maximum value that can be stored in a MIPS halfword is 215-1
MAX_STEPS - Static variable in class mars.simulator.Simulator
 
MAX_WORD_VALUE - Static variable in class mars.assembler.DataTypes
Maximum value that can be stored in a MIPS word is 231-1
MAXIMUM_SCROLLED_CHARACTERS - Static variable in class mars.venus.MessagesPane
 
maximumBacksteps - Static variable in class mars.Globals
Maximum number of back-step operations to buffer
maximumMessageCharacters - Static variable in class mars.Globals
Maximum length of scrolled message window (MARS Messages and Run I/O)
maxSteps - Static variable in class mars.venus.RunGoAction
 
memory - Static variable in class mars.Globals
Simulated MIPS memory component.
Memory - class mars.mips.hardware.Memory.
Represents MIPS memory.
MemoryAccessNotice - class mars.mips.hardware.MemoryAccessNotice.
Object provided to Observers of runtime access to MIPS memory.
memoryAndRegistersLock - Static variable in class mars.Globals
Lock variable used at head of synchronized block to guard MIPS memory and registers
memoryMapBaseAddress - Static variable in class mars.mips.hardware.Memory
starting address for memory mapped I/O: 0xffff0000 (-65536)
memoryMapLimitAddress - Static variable in class mars.mips.hardware.Memory
 
MemoryReferenceVisualization - class mars.tools.MemoryReferenceVisualization.
Memory reference visualization.
MemoryReferenceVisualization() - Constructor for class mars.tools.MemoryReferenceVisualization
Simple constructor, likely used by the MARS Tools menu mechanism
MemoryReferenceVisualization(String, String) - Constructor for class mars.tools.MemoryReferenceVisualization
Simple constructor, likely used to run a stand-alone memory reference visualizer.
MessagesPane - class mars.venus.MessagesPane.
Creates the message window at the bottom of the UI.
MessagesPane() - Constructor for class mars.venus.MessagesPane
Constructor for the class, sets up two fresh tabbed text areas for program feedback.
metrics - Variable in class mars.venus.HardcopyWriter
 
MIN_BYTE_VALUE - Static variable in class mars.assembler.DataTypes
Lowest value that can be stored in a MIPS byte is -27
MIN_HALF_VALUE - Static variable in class mars.assembler.DataTypes
Lowest value that can be stored in a MIPS halfword is -215
MIN_WORD_VALUE - Static variable in class mars.assembler.DataTypes
Lowest value that can be stored in a MIPS word is -231
MINUS - Static variable in class mars.assembler.TokenTypes
 
MIPSprogram - class mars.MIPSprogram.
Internal representations of MIPS program.
MIPSprogram() - Constructor for class mars.MIPSprogram
 
mnemonic - Variable in class mars.mips.instructions.Instruction
The instruction name.
mousePressed(MouseEvent) - Method in class mars.venus.PopupListener
 
mouseReleased(MouseEvent) - Method in class mars.venus.PopupListener
 

N

NEW_EDITED - Static variable in class mars.venus.FileStatus
New edit window with unsaved edits
NEW_NOT_EDITED - Static variable in class mars.venus.FileStatus
New edit window with no edits
newline() - Method in class mars.venus.HardcopyWriter
This internal method begins a new line
newpage() - Method in class mars.venus.HardcopyWriter
This internal method begins a new page and prints the header.
NO_FILE - Static variable in class mars.venus.FileStatus
initial state or after close
NORMAL_TERMINATION - Static variable in class mars.simulator.Simulator
 
NOT_EDITED - Static variable in class mars.venus.FileStatus
open/saved edit window with no edits
NOT_FOUND - Static variable in class mars.assembler.SymbolTable
 
notifyObservers() - Method in class mars.mips.hardware.Memory
Overridden to be unavailable.
notifyObservers(Object) - Method in class mars.mips.hardware.Memory
Overridden to be unavailable.
NUMBER_OF_CHARACTERS_TO_CUT - Static variable in class mars.venus.MessagesPane
 
numberDisplayBaseChanged(NumberDisplayBaseChooser) - Method in class mars.venus.ExecutePane
Update display of columns based on state of given chooser.
NumberDisplayBaseChooser - class mars.venus.NumberDisplayBaseChooser.
Use to select base for displaying numbers.
NumberDisplayBaseChooser(String, boolean) - Constructor for class mars.venus.NumberDisplayBaseChooser
constructor.

O

openFile(String, int) - Static method in class mars.util.SystemIO
Open a file for either reading or writing.
OperandFormat - class mars.assembler.OperandFormat.
Provides utility method related to MIPS operand formats.
operandMask - Static variable in class mars.mips.instructions.Instruction
Characters used in instruction mask to indicate bit positions for 'f'irst, 's'econd, and 't'hird operands.
OPERATOR - Static variable in class mars.assembler.TokenTypes
 
outOfRange(Directives, double) - Static method in class mars.assembler.DataTypes
Determines whether given floating point value falls within value range for given directive.
outOfRange(Directives, int) - Static method in class mars.assembler.DataTypes
Determines whether given integer value falls within value range for given directive.

P

page - Variable in class mars.venus.HardcopyWriter
 
pageBreak() - Method in class mars.venus.HardcopyWriter
End the current page.
pagedpi - Variable in class mars.venus.HardcopyWriter
 
pagenum - Variable in class mars.venus.HardcopyWriter
 
pagesize - Variable in class mars.venus.HardcopyWriter
 
pasteText() - Method in class mars.venus.EditPane
paste clipboard contents at cursor position
PAUSE_OR_STOP - Static variable in class mars.simulator.Simulator
 
paused(boolean, int, ProcessingException) - Method in class mars.venus.RunGoAction
Method to be called when Pause is selected through menu/toolbar/shortcut.
performSpecialClosingDuties() - Method in class mars.tools.AbstractMarsToolAndApplication
This method is called when tool/app is exited either through the close/exit button or the window's X box.
PLUS - Static variable in class mars.assembler.TokenTypes
 
populate() - Method in class mars.mips.instructions.InstructionSet
Adds all instructions to the set.
PopupListener - class mars.venus.PopupListener.
 
PopupListener(JPopupMenu) - Constructor for class mars.venus.PopupListener
 
postMarsMessage(String) - Method in class mars.venus.MessagesPane
Post a message to the assembler display
postRunMessage(String) - Method in class mars.venus.MessagesPane
Post a message to the runtime display
prepareFilesForAssembly(ArrayList, String, String) - Method in class mars.MIPSprogram
Prepares the given list of files for assembly.
printprops - Static variable in class mars.venus.HardcopyWriter
 
printString(String) - Static method in class mars.util.SystemIO
Implements syscall having 4 in $v0, to print a string.
ProcessingException - exception mars.ProcessingException.
Class to represent error that occurs while assembling or running a MIPS program.
ProcessingException() - Constructor for class mars.ProcessingException
Constructor for ProcessingException.
ProcessingException(ErrorList) - Constructor for class mars.ProcessingException
Constructor for ProcessingException.
ProcessingException(ProgramStatement, AddressErrorException) - Constructor for class mars.ProcessingException
Constructor for ProcessingException to handle address runtime exceptions
ProcessingException(ProgramStatement, String) - Constructor for class mars.ProcessingException
Constructor for ProcessingException to handle runtime exceptions
ProcessingException(ProgramStatement, String, int) - Constructor for class mars.ProcessingException
Constructor for ProcessingException to handle runtime exceptions
processMIPSUpdate(Observable, AccessNotice) - Method in class mars.tools.MemoryReferenceVisualization
Update display when connected MIPS program accesses (data) memory.
processMIPSUpdate(Observable, AccessNotice) - Method in class mars.tools.AbstractMarsToolAndApplication
Override this method to process a received notice from MIPS Observable (memory or register) It will only be called if the notice was generated as the result of MIPS instruction execution.
processMIPSUpdate(Observable, AccessNotice) - Method in class mars.tools.CacheSimulator
Apply caching policies and update display when connected MIPS program accesses (data) memory.
program - Static variable in class mars.Globals
the program currently being worked with.
ProgramStatement - class mars.ProgramStatement.
Represents one assembly/machine statement.
ProgramStatement(int, int) - Constructor for class mars.ProgramStatement
Constructor for ProgramStatement used only for writing a binary machine instruction with no source code to refer back to.
ProgramStatement(MIPSprogram, String, TokenList, TokenList, Instruction, int, int) - Constructor for class mars.ProgramStatement
Constructor for ProgramStatement when there are links back to all source and token information.
PropertiesFile - class mars.util.PropertiesFile.
Provides means to work with ".properties" files which are used to store various MARS settings.
PropertiesFile() - Constructor for class mars.util.PropertiesFile
 

Q

QUOTED_STRING - Static variable in class mars.assembler.TokenTypes
 

R

R_FORMAT - Static variable in class mars.mips.instructions.BasicInstructionFormat
 
READ - Static variable in class mars.mips.hardware.AccessNotice
Indicates the purpose of access was to read.
readChar(int) - Static method in class mars.util.SystemIO
Implements syscall having 12 in $v0, to read a char value.
readDouble(int) - Static method in class mars.util.SystemIO
Implements syscall to read a double value.
readFloat(int) - Static method in class mars.util.SystemIO
Implements syscall to read a float value.
readFromFile(int, byte[], int) - Static method in class mars.util.SystemIO
Write bytes to file.
readInteger(int) - Static method in class mars.util.SystemIO
Implements syscall to read an integer value.
readSource(String) - Method in class mars.MIPSprogram
Reads MIPS source code from file into structure.
readString(int, int) - Static method in class mars.util.SystemIO
Implements syscall to read a string.
REAL_NUMBER - Static variable in class mars.assembler.TokenTypes
 
Register - class mars.mips.hardware.Register.
Abstraction to represent a register of a MIPS Assembler.
REGISTER_NAME - Static variable in class mars.assembler.TokenTypes
note: REGISTER_NAME is token of form $zero whereas REGISTER_NUMBER is token of form $0.
REGISTER_NUMBER - Static variable in class mars.assembler.TokenTypes
 
Register(String, int, int) - Constructor for class mars.mips.hardware.Register
Creates a new register with specified name, number, and value.
RegisterAccessNotice - class mars.mips.hardware.RegisterAccessNotice.
Object provided to Observers of runtime access to MIPS register.
RegisterFile - class mars.mips.hardware.RegisterFile.
Represents the collection of MIPS registers.
RegisterFile() - Constructor for class mars.mips.hardware.RegisterFile
 
RegistersPane - class mars.venus.RegistersPane.
Contains tabbed areas in the UI to display register contents
RegistersPane(VenusUI, RegistersWindow, Coprocessor1Window, Coprocessor0Window) - Constructor for class mars.venus.RegistersPane
Constructor for the RegistersPane class.
RegistersWindow - class mars.venus.RegistersWindow.
Sets up a window to display registers in the UI.
RegistersWindow() - Constructor for class mars.venus.RegistersWindow
Constructor which sets up a fresh window with a table that contains the register values.
registerTableModelListener(TableModelListener) - Method in class mars.venus.TextSegmentWindow
Assign listener to Table model.
remove(int) - Method in class mars.assembler.TokenList
Removes Token object at specified list position.
removeSymbol(Token) - Method in class mars.assembler.SymbolTable
Removes a symbol from the Symbol table.
RESERVED_INSTRUCTION_EXCEPTION - Static variable in class mars.simulator.Exceptions
 
reset() - Method in class mars.Settings
Reset settings to default values, as described in the constructor comments.
reset() - Method in class mars.tools.MemoryReferenceVisualization
Method to reset counters and display when the Reset button selected.
reset() - Method in class mars.tools.FloatRepresentation
Method to reset display values to 0 when the Reset button selected.
reset() - Method in class mars.tools.AbstractMarsToolAndApplication
Method that will be called each time the default Reset button is clicked.
reset() - Method in class mars.tools.CacheSimulator
Method to reset cache, counters and display when the Reset button selected.
reset() - Static method in class mars.venus.FileStatus
Resets all the values in FileStatus
resetFiles() - Static method in class mars.util.SystemIO
Reset all files -- clears out the file descriptor table.
resetMaxSteps() - Static method in class mars.venus.RunGoAction
Reset max steps limit to default value at termination of a simulated execution.
resetMemoryRange() - Method in class mars.venus.DataSegmentWindow
Reset range of memory addresses to intial range and update display.
resetRegisters() - Static method in class mars.mips.hardware.RegisterFile
Method to reinitialize the values of the registers.
resetRegisters() - Static method in class mars.mips.hardware.Coprocessor1
Method to reinitialize the values of the registers.
resetRegisters() - Static method in class mars.mips.hardware.Coprocessor0
Method to reinitialize the values of the registers.
resetValue() - Method in class mars.mips.hardware.Register
Resets the value of the register to the value it was constructed with.
resetValues() - Method in class mars.venus.DataSegmentWindow
Reset all data display values to 0
RIGHT_PAREN - Static variable in class mars.assembler.TokenTypes
 
RunAssembleAction - class mars.venus.RunAssembleAction.
Action class for the Run -> Assemble menu item (and toolbar icon)
RunAssembleAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.RunAssembleAction
 
RunBackstepAction - class mars.venus.RunBackstepAction.
Action for the Run -> Backstep menu item
RunBackstepAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.RunBackstepAction
 
RunClearBreakpointsAction - class mars.venus.RunClearBreakpointsAction.
Action class for the Run menu item to clear execution breakpoints that have been set.
RunClearBreakpointsAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.RunClearBreakpointsAction
Create the object and register with text segment window as a listener on its table model.
RunGoAction - class mars.venus.RunGoAction.
Action class for the Run -> Go menu item (and toolbar icon)
RunGoAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.RunGoAction
 
RUNNABLE - Static variable in class mars.venus.FileStatus
successful assembly
RUNNING - Static variable in class mars.venus.FileStatus
execution is under way
RunPauseAction - class mars.venus.RunPauseAction.
Action class for the Run -> Pause menu item (and toolbar icon)
RunPauseAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.RunPauseAction
 
RunResetAction - class mars.venus.RunResetAction.
Action for the Run -> Reset menu item
RunResetAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.RunResetAction
 
RunSpeedPanel - class mars.venus.RunSpeedPanel.
Class for the Run speed slider control.
RunStepAction - class mars.venus.RunStepAction.
Action for the Run -> Step menu item
RunStepAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.RunStepAction
 
RunStopAction - class mars.venus.RunStopAction.
Action class for the Run -> Stop menu item (and toolbar icon)
RunStopAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.RunStopAction
 

S

save() - Method in class mars.venus.Editor
Pops up a dialog box to do "Save" operation.
saveAs() - Method in class mars.venus.Editor
Pops up a dialog box to do "Save As" operation.
ScavengerHunt - class mars.tools.ScavengerHunt.
Demo of Mars tool capability.
ScavengerHunt() - Constructor for class mars.tools.ScavengerHunt
 
selectMarsMessageTab() - Method in class mars.venus.MessagesPane
Make the assembler message tab current (up front)
selectRunMessageTab() - Method in class mars.venus.MessagesPane
Make the runtime message tab current (up front)
SET - Static variable in class mars.assembler.Directives
 
set(int) - Static method in class mars.venus.FileStatus
Set file status.
set(int, int, int) - Method in class mars.mips.hardware.Memory
Starting at the given address, write the given value over the given number of bytes.
setAddress(int) - Method in class mars.assembler.Symbol
Sets (replaces) the address of the the Symbol.
setAssembleAllEnabled(boolean) - Method in class mars.Settings
Establish setting for whether a file will be assembled by itself (false) or along with all other files in its directory (true).
setAssembled(boolean) - Static method in class mars.venus.FileStatus
Changes the value of assenbked to the parameter given.
setAssembleOnOpenEnabled(boolean) - Method in class mars.Settings
Establish setting for whether a file will be automatically assembled as soon as it is opened.
setBase(int) - Method in class mars.venus.NumberDisplayBaseChooser
Set the current number base.
setBasicAssemblyStatement(String) - Method in class mars.ProgramStatement
Assigns given String to be Basic Assembly statement equivalent to this source line.
setBinaryStatement(int) - Method in class mars.ProgramStatement
Assigns given int to be binary machine code equivalent to this source line.
setBit(int, int) - Static method in class mars.util.Binary
Sets the specified bit of the specified value to 1, and returns the result.
setByte(int, int) - Method in class mars.mips.hardware.Memory
Writes low order 8 bits of given value into specified Memory byte.
setByte(int, int, int) - Static method in class mars.util.Binary
Sets the specified byte of the specified value to the low order 8 bits of specified replacement value, and returns the result.
setByteOrder(boolean) - Method in class mars.mips.hardware.Memory
Set byte order to either LITTLE_ENDIAN or BIG_ENDIAN.
setCodeHighlighting(boolean) - Method in class mars.venus.TextSegmentWindow
Used to enable or disable source code highlighting.
setConditionFlag(int) - Static method in class mars.mips.hardware.Coprocessor1
Set condition flag to 1 (true).
setConditionFlags() - Static method in class mars.mips.hardware.Coprocessor1
Set all condition flags (0-7).
setCurrentDirectoryPath(String) - Method in class mars.venus.EditPane
Set the current directory pathname
setCursorVisible(boolean) - Method in class mars.venus.EditPane
Control cursor visibility
setDisplayAddressesInHex(boolean) - Method in class mars.Settings
Establish setting for whether addresses in the Execute pane will be displayed in hexadecimal format.
setDisplayValuesInHex(boolean) - Method in class mars.Settings
Establish setting for whether values in the Execute pane will be displayed in hexadecimal format.
setDouble(int, double) - Method in class mars.mips.hardware.Memory
Writes 64 bit double value starting at specified Memory address.
setEdited(boolean) - Static method in class mars.venus.FileStatus
Changes the value of edited to the parameter given.
setEnabled(boolean) - Method in class mars.simulator.BackStepper
Set enable status.
setExceptionHandler(String) - Method in class mars.Settings
Set name of exception handler file and write it to settings properties file.
setExceptionHandlerEnabled(boolean) - Method in class mars.Settings
Establish setting for whether the currently selected exception handler (a MIPS source file) will be automatically included in each assemble operation.
setExtendedAssemblerEnabled(boolean) - Method in class mars.Settings
Establish setting for whether or not pseudo-instructions and formats are permitted in user programs.
setFile(File) - Static method in class mars.venus.FileStatus
Sets the file to the ASM file passed.
setFontStyle(int) - Method in class mars.venus.HardcopyWriter
Set the font style.
setFrameTitle() - Method in class mars.venus.Editor
Places name of file currently being edited into the title bar of the editing window.
setGui(VenusUI) - Static method in class mars.Globals
 
setHalf(int, int) - Method in class mars.mips.hardware.Memory
Starting at the given halfword address, write the lower 16 bits of given value into 2 bytes (a halfword).
setLabelWindowVisibility(boolean) - Method in class mars.Settings
Establish setting for whether the labels window (i.e.
setLabelWindowVisibility(boolean) - Method in class mars.venus.ExecutePane
Show or hide the label window (symbol table).
setMachineStatement(String) - Method in class mars.ProgramStatement
Assigns given String to be binary machine code (32 characters, all of them 0 or 1) equivalent to this source line.
setMenuState(int) - Method in class mars.venus.VenusUI
Determine from FileStatus what the menu state (enabled/disabled)should be then call the appropriate method to set it.
setName(String) - Static method in class mars.venus.FileStatus
Changes the value of name to the parameter given.
setNumber(int) - Method in class mars.mips.instructions.syscalls.AbstractSyscall
Set the service number.
setNumber(int) - Method in interface mars.mips.instructions.syscalls.Syscall
Set the service number.
setProgramCounter(int) - Static method in class mars.mips.hardware.RegisterFile
For setting the Program Counter.
setRawWord(int, int) - Method in class mars.mips.hardware.Memory
Starting at the given word address, write the given value over 4 bytes (a word).
setRegisters(int) - Static method in class mars.simulator.Exceptions
Given MIPS exception cause code, will place that code into coprocessor 0 CAUSE register ($13), set the EPC register to "current" program counter, and set Exception Level bit in STATUS register.
setRegisters(int, int) - Static method in class mars.simulator.Exceptions
Given MIPS exception cause code and bad address, place the bad address into VADDR register ($8) then call overloaded setRegisters with the cause code to do the rest.
setRegisterToDouble(int, double) - Static method in class mars.mips.hardware.Coprocessor1
Sets the value of the FPU register given to the double value given.
setRegisterToDouble(String, double) - Static method in class mars.mips.hardware.Coprocessor1
Sets the value of the FPU register given to the double value given.
setRegisterToFloat(int, float) - Static method in class mars.mips.hardware.Coprocessor1
Sets the value of the FPU register given to the value given.
setRegisterToFloat(String, float) - Static method in class mars.mips.hardware.Coprocessor1
Sets the value of the FPU register given to the value given.
setReset(boolean) - Static method in class mars.venus.VenusUI
To set whether the register values are reset.
setSaved(boolean) - Static method in class mars.venus.FileStatus
Changes the value of saved to the parameter given.
setSettingsMenuItem(JCheckBoxMenuItem) - Method in class mars.venus.NumberDisplayBaseChooser
Set the menu item from Settings menu that corresponds to this chooser.
setShowLineNumbersEnabled(boolean) - Method in class mars.venus.EditPane
enable or disable checkbox that controls display of line numbers
setSource(String) - Method in class mars.ProgramStatement
associates MIPS source statement.
setSourceCode(String, boolean) - Method in class mars.venus.EditPane
For initalizing the source code when opening an ASM file
setStarted(boolean) - Static method in class mars.venus.VenusUI
To set whether MIPS program execution has started.
setStatement(int, ProgramStatement) - Method in class mars.mips.hardware.Memory
Stores ProgramStatement in Text Segment.
Settings - class mars.Settings.
Contains various IDE settings.
Settings() - Constructor for class mars.Settings
Create Settings object and set to saved values.
SettingsAddressDisplayBaseAction - class mars.venus.SettingsAddressDisplayBaseAction.
Action class for the Settings menu item to control number base (10 or 16) of memory addresses.
SettingsAddressDisplayBaseAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.SettingsAddressDisplayBaseAction
 
SettingsAssembleAllAction - class mars.venus.SettingsAssembleAllAction.
Action class for the Settings menu item to determine whether assemble operation applies only to current file or to all files in its directory.
SettingsAssembleAllAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.SettingsAssembleAllAction
 
SettingsAssembleOnOpenAction - class mars.venus.SettingsAssembleOnOpenAction.
Action class for the Settings menu item to control automatic assemble of file upon opening.
SettingsAssembleOnOpenAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.SettingsAssembleOnOpenAction
 
SettingsExceptionHandlerAction - class mars.venus.SettingsExceptionHandlerAction.
Action class for the Settings menu item to control automatic assemble of file upon opening.
SettingsExceptionHandlerAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.SettingsExceptionHandlerAction
 
SettingsExtendedAction - class mars.venus.SettingsExtendedAction.
Action class for the Settings menu item to control use of extended (pseudo) instructions or formats.
SettingsExtendedAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.SettingsExtendedAction
 
SettingsLabelAction - class mars.venus.SettingsLabelAction.
Action class for the Settings menu item to control display of Labels window (symbol table).
SettingsLabelAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.SettingsLabelAction
 
SettingsValueDisplayBaseAction - class mars.venus.SettingsValueDisplayBaseAction.
Action class for the Settings menu item to control number base (10 or 16) of memory/register contents.
SettingsValueDisplayBaseAction(String, Icon, String, Integer, KeyStroke, VenusUI) - Constructor for class mars.venus.SettingsValueDisplayBaseAction
 
setupTable() - Method in class mars.venus.LabelsWindow
Initialize table of labels (symbol table)
setupTable() - Method in class mars.venus.TextSegmentWindow
Method to be called once the user compiles the program.
setupTable() - Method in class mars.venus.DataSegmentWindow
Generates and displays fresh table, typically done upon successful assembly.
setUpToolBar() - Method in class mars.venus.VenusUI
build the toolbar and connect items to action objects (which serve as action listeners shared between toolbar icon and corresponding menu item).
setupWindow() - Method in class mars.venus.RegistersWindow
Sets up the data for the window.
setupWindow() - Method in class mars.venus.Coprocessor1Window
Sets up the data for the window.
setupWindow() - Method in class mars.venus.Coprocessor0Window
Sets up the data for the window.
setValue(int) - Method in class mars.mips.hardware.Register
Sets the value of the register to the val passed to it.
setWindowBounds() - Method in class mars.venus.ExecutePane
This method will set the bounds of this JDesktopPane's internal windows relative to the current size of this JDesktopPane.
setWord(int, int) - Method in class mars.mips.hardware.Memory
Starting at the given word address, write the given value over 4 bytes (a word).
showingLineNumbers() - Method in class mars.venus.EditPane
get editor's line number display status
showRegisters() - Static method in class mars.mips.hardware.RegisterFile
Method for displaying the register values for debugging.
showRegisters() - Static method in class mars.mips.hardware.Coprocessor1
Method for displaying the register values for debugging.
showRegisters() - Static method in class mars.mips.hardware.Coprocessor0
Method for displaying the register values for debugging.
showSplash() - Method in class mars.MarsSplashScreen
A simple little method to show a title screen in the center of the screen for the amount of time given in the constructor
simulate(int) - Method in class mars.MIPSprogram
Simulates execution of the MIPS program.
simulate(int[]) - Method in class mars.MIPSprogram
Simulates execution of the MIPS program.
simulate(MIPSprogram, int, int, int[], AbstractAction) - Method in class mars.simulator.Simulator
Simulate execution of given MIPS program.
simulate(ProgramStatement) - Method in interface mars.mips.instructions.SimulationCode
Method to simulate the execution of a specific MIPS basic instruction.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallWrite
Performs syscall function to write to file descriptor given in $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallSbrk
Performs syscall function to allocate amount of heap memory specified in $a0, putting address into $v0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallReadString
Performs syscall function to read console input string into buffer starting at address in $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallReadInt
Performs syscall function to read an integer from input console into $v0
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallReadFloat
Performs syscall function to read the bits of input float into $f0
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallReadDouble
Performs syscall function to read the bits of input double into $f0 and $f1.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallReadChar
Performs syscall function to read a character from input console into $a0
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallRead
Performs syscall function to read from file descriptor given in $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallPrintString
Performs syscall function to print string stored starting at address in $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallPrintInt
Performs syscall function to print on the console the integer stored in $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallPrintFloat
Performs syscall function to display float whose bits are stored in $f12
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallPrintDouble
Performs syscall function to print double whose bits are stored in $f12 & $f13.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallPrintChar
Performs syscall function to print on the console the character stored in $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallOpen
Performs syscall function to open file name specified by $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallExit2
Performs syscall function to exit the MIPS program with return value given in $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallExit
Performs syscall function to exit the MIPS program.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.SyscallClose
Performs syscall function to close file descriptor given in $a0.
simulate(ProgramStatement) - Method in class mars.mips.instructions.syscalls.AbstractSyscall
Performs syscall function.
simulate(ProgramStatement) - Method in interface mars.mips.instructions.syscalls.Syscall
Performs syscall function.
simulateFromPC(int[], int, AbstractAction) - Method in class mars.MIPSprogram
Simulates execution of the MIPS program.
simulateStepAtPC(AbstractAction) - Method in class mars.MIPSprogram
Simulates execution of the MIPS program.
SimulationCode - interface mars.mips.instructions.SimulationCode.
Interface to represent the method for simulating the execution of a specific MIPS basic instruction.
Simulator - class mars.simulator.Simulator.
Used to simulate the execution of an assembled MIPS program.
size() - Method in class mars.assembler.TokenList
Returns number of tokens in list.
SPACE - Static variable in class mars.assembler.Directives
 
stackBaseAddress - Static variable in class mars.mips.hardware.Memory
base address for stack: 0x7ffffffc (this is mine - start of highest word below kernel space)
stackLimitAddress - Static variable in class mars.mips.hardware.Memory
 
stackPointer - Static variable in class mars.mips.hardware.Memory
starting address for stack: 0x7fffeffc (this is from SPIM not MIPS)
start() - Method in class mars.simulator.SwingWorker
Start the worker thread.
STATUS - Static variable in class mars.mips.hardware.Coprocessor0
 
stepped(boolean, ProcessingException) - Method in class mars.venus.RunStepAction
 
stopExecution(AbstractAction) - Method in class mars.simulator.Simulator
Set the volatile stop boolean variable checked by the execution thread at the end of each MIPS instruction execution.
stopped(ProcessingException, int) - Method in class mars.venus.RunGoAction
Method to be called when Stop is selected through menu/toolbar/shortcut.
stringToInt(String) - Static method in class mars.util.Binary
Attempt to validate given string whose characters represent a 32 bit integer.
stringToLong(String) - Static method in class mars.util.Binary
Attempt to validate given string whose characters represent a 64 bit long.
SwingWorker - class mars.simulator.SwingWorker.
This is the 3rd version of SwingWorker (also known as SwingWorker 3), an abstract class that you subclass to perform GUI-related work in a dedicated thread.
SwingWorker() - Constructor for class mars.simulator.SwingWorker
Start a thread that will call the construct method and then exit.
Symbol - class mars.assembler.Symbol.
Represents a MIPS program identifier to be stored in the symbol table.
Symbol(String, int, boolean) - Constructor for class mars.assembler.Symbol
Basic constructor, creates a symbol object.
symbolTable - Static variable in class mars.Globals
Symbol table for file currently being assembled.
SymbolTable - class mars.assembler.SymbolTable.
Creats a table of Symbol objects.
SymbolTable(String) - Constructor for class mars.assembler.SymbolTable
Create a new empty symbol table for given file
Syscall - interface mars.mips.instructions.syscalls.Syscall.
Interface for any MIPS syscall system service.
SYSCALL_BUFSIZE - Static variable in class mars.util.SystemIO
Buffer size for syscalls for file I/O
SYSCALL_EXCEPTION - Static variable in class mars.simulator.Exceptions
 
SYSCALL_MAXFILES - Static variable in class mars.util.SystemIO
Maximum number of files that can be open
SyscallClose - class mars.mips.instructions.syscalls.SyscallClose.
Service to close file descriptor given in $a0.
SyscallClose() - Constructor for class mars.mips.instructions.syscalls.SyscallClose
Build an instance of the Close syscall.
SyscallExit - class mars.mips.instructions.syscalls.SyscallExit.
Service to exit the MIPS program.
SyscallExit() - Constructor for class mars.mips.instructions.syscalls.SyscallExit
Build an instance of the Exit syscall.
SyscallExit2 - class mars.mips.instructions.syscalls.SyscallExit2.
Service to exit the MIPS program with return value given in $a0.
SyscallExit2() - Constructor for class mars.mips.instructions.syscalls.SyscallExit2
Build an instance of the Exit2 syscall.
SyscallNumberOverride - class mars.mips.instructions.syscalls.SyscallNumberOverride.
Represents User override of default syscall number assignment.
SyscallNumberOverride(String, String) - Constructor for class mars.mips.instructions.syscalls.SyscallNumberOverride
Constructor is called with two strings: service name and desired number.
SyscallOpen - class mars.mips.instructions.syscalls.SyscallOpen.
Service to open file name specified by $a0.
SyscallOpen() - Constructor for class mars.mips.instructions.syscalls.SyscallOpen
Build an instance of the Open file syscall.
SyscallPrintChar - class mars.mips.instructions.syscalls.SyscallPrintChar.
Service to display character stored in $a0 on the console.
SyscallPrintChar() - Constructor for class mars.mips.instructions.syscalls.SyscallPrintChar
Build an instance of the Print Char syscall.
SyscallPrintDouble - class mars.mips.instructions.syscalls.SyscallPrintDouble.
Service to display double whose bits are stored in $f12 & $f13 onto the console.
SyscallPrintDouble() - Constructor for class mars.mips.instructions.syscalls.SyscallPrintDouble
Build an instance of the Print Double syscall.
SyscallPrintFloat - class mars.mips.instructions.syscalls.SyscallPrintFloat.
Service to display on the console float whose bits are stored in $f12
SyscallPrintFloat() - Constructor for class mars.mips.instructions.syscalls.SyscallPrintFloat
Build an instance of the Print Float syscall.
SyscallPrintInt - class mars.mips.instructions.syscalls.SyscallPrintInt.
Service to display integer stored in $a0 on the console.
SyscallPrintInt() - Constructor for class mars.mips.instructions.syscalls.SyscallPrintInt
Build an instance of the Print Integer syscall.
SyscallPrintString - class mars.mips.instructions.syscalls.SyscallPrintString.
Service to display string stored starting at address in $a0 onto the console.
SyscallPrintString() - Constructor for class mars.mips.instructions.syscalls.SyscallPrintString
Build an instance of the Print String syscall.
SyscallRead - class mars.mips.instructions.syscalls.SyscallRead.
Service to read from file descriptor given in $a0.
SyscallRead() - Constructor for class mars.mips.instructions.syscalls.SyscallRead
Build an instance of the Read file syscall.
SyscallReadChar - class mars.mips.instructions.syscalls.SyscallReadChar.
Service to read a character from input console into $a0.
SyscallReadChar() - Constructor for class mars.mips.instructions.syscalls.SyscallReadChar
Build an instance of the Read Char syscall.
SyscallReadDouble - class mars.mips.instructions.syscalls.SyscallReadDouble.
Service to read the bits of console input double into $f0 and $f1.
SyscallReadDouble() - Constructor for class mars.mips.instructions.syscalls.SyscallReadDouble
Build an instance of the Read Double syscall.
SyscallReadFloat - class mars.mips.instructions.syscalls.SyscallReadFloat.
Service to read the bits of input float into $f0
SyscallReadFloat() - Constructor for class mars.mips.instructions.syscalls.SyscallReadFloat
Build an instance of the Read Float syscall.
SyscallReadInt - class mars.mips.instructions.syscalls.SyscallReadInt.
Service to read an integer from input console into $v0.
SyscallReadInt() - Constructor for class mars.mips.instructions.syscalls.SyscallReadInt
Build an instance of the Read Integer syscall.
SyscallReadString - class mars.mips.instructions.syscalls.SyscallReadString.
Service to read console input string into buffer starting at address in $a0.
SyscallReadString() - Constructor for class mars.mips.instructions.syscalls.SyscallReadString
Build an instance of the Read String syscall.
SyscallSbrk - class mars.mips.instructions.syscalls.SyscallSbrk.
Service to allocate amount of heap memory specified in $a0, putting address into $v0.
SyscallSbrk() - Constructor for class mars.mips.instructions.syscalls.SyscallSbrk
Build an instance of the Sbrk syscall.
SyscallWrite - class mars.mips.instructions.syscalls.SyscallWrite.
Service to write to file descriptor given in $a0.
SyscallWrite() - Constructor for class mars.mips.instructions.syscalls.SyscallWrite
Build an instance of the Write file syscall.
SystemIO - class mars.util.SystemIO.
Provides standard i/o services needed to simulate the MIPS syscall routines.
SystemIO() - Constructor for class mars.util.SystemIO
 

T

tableChanged(TableModelEvent) - Method in class mars.venus.RunClearBreakpointsAction
Required TableModelListener method.
TERMINATED - Static variable in class mars.venus.FileStatus
execution terminated
TEXT - Static variable in class mars.assembler.Directives
 
TEXT_SYMBOL - Static variable in class mars.assembler.Symbol
 
textBaseAddress - Static variable in class mars.mips.hardware.Memory
base address for (user) text segment: 0x00400000
textLimitAddress - Static variable in class mars.mips.hardware.Memory
 
TextSegmentWindow - class mars.venus.TextSegmentWindow.
Creates the Text Segment window in the Execute tab of the UI
TextSegmentWindow() - Constructor for class mars.venus.TextSegmentWindow
Constructor, sets up a new JInternalFrame.
theWindow - Variable in class mars.tools.AbstractMarsToolAndApplication
 
thisMarsApp - Variable in class mars.tools.AbstractMarsToolAndApplication
 
time - Variable in class mars.venus.HardcopyWriter
 
Token - class mars.assembler.Token.
Represents one token in the input MIPS program.
TOKEN_DELIMITERS - Static variable in class mars.assembler.TokenTypes
 
Token(TokenTypes, String, MIPSprogram, int, int) - Constructor for class mars.assembler.Token
Constructor for Token class.
tokenize() - Method in class mars.MIPSprogram
Tokenizes the MIPS source program.
tokenize(MIPSprogram) - Method in class mars.assembler.Tokenizer
Will tokenize a complete MIPS program.
tokenizeExampleInstruction(String) - Method in class mars.assembler.Tokenizer
Used only to create a token list for the example provided with each instruction specification.
tokenizeLine(int, String) - Method in class mars.assembler.Tokenizer
Will tokenize one line of source code.
tokenizeLine(int, String, ErrorList) - Method in class mars.assembler.Tokenizer
Will tokenize one line of source code.
Tokenizer - class mars.assembler.Tokenizer.
A tokenizer is capable of tokenizing a complete MIPS program, or a given line from a MIPS program.
Tokenizer() - Constructor for class mars.assembler.Tokenizer
Simple constructor.
tokenList - Variable in class mars.mips.instructions.Instruction
List of tokens generated by tokenizing example usage (see exampleFormat).
TokenList - class mars.assembler.TokenList.
Represents the list of tokens in a single line of MIPS code.
TokenList() - Constructor for class mars.assembler.TokenList
Constructor for objects of class TokenList
tokenOperandMatch(TokenList, TokenList, ErrorList) - Static method in class mars.assembler.OperandFormat
Syntax test for correct match in both numbers and types of operands.
TokenTypes - class mars.assembler.TokenTypes.
Constants to identify the types of tokens found in MIPS programs.
ToolAction - class mars.venus.ToolAction.
Connects a MarsTool class (class that implements MarsTool interface) to the Mars menu system by supplying the response to that tool's menu item selection.
ToolAction(Class, String) - Constructor for class mars.venus.ToolAction
Simple constructor.
ToolLoader - class mars.venus.ToolLoader.
This class provides functionality to bring external Mars tools into the Mars system by adding them to its Tools menu.
ToolLoader() - Constructor for class mars.venus.ToolLoader
 
toString() - Method in class mars.ProgramStatement
Crude attempt at building String representation of this complex structure.
toString() - Method in class mars.assembler.Directives
Produces String-ified version of Directive object
toString() - Method in class mars.assembler.TokenTypes
Produces String equivalent of this token type, which is its name.
toString() - Method in class mars.mips.hardware.RegisterAccessNotice
String representation indicates access type and which register
toString() - Method in class mars.mips.hardware.MemoryAccessNotice
String representation indicates access type, address and length in bytes
translate() - Method in interface mars.assembler.TranslationCode
This is a callback method defined in anonymous class specified as argument to ExtendedInstruction constructor.
TranslationCode - interface mars.assembler.TranslationCode.
This interface is intended for use by ExtendedInstruction objects to define, using the translate() method, how to translate the extended (pseudo) instruction into a sequence of one or more basic instructions, which can then be translated into binary machine code.
TRAP_EXCEPTION - Static variable in class mars.simulator.Exceptions
 
twoIntsToLong(int, int) - Static method in class mars.util.Binary
Returns long (64 bit integer) combining the bit values of two given 32 bit integer values.

U

unhighlightAllSteps() - Method in class mars.venus.TextSegmentWindow
If any steps are highlighted, this erases the highlighting.
UNLIMITED_SPEED - Static variable in class mars.venus.RunSpeedPanel
Constant that represents unlimited run speed.
unsignedIntToIntString(int) - Static method in class mars.util.Binary
Produce String equivalent of integer value interpreting it as an unsigned integer.
update(Observable, Object) - Method in class mars.tools.ScavengerHunt
 
update(Observable, Object) - Method in class mars.tools.MarsBot
 
update(Observable, Object) - Method in class mars.tools.FloatRepresentation
Override inherited update() to update display when "attached" register is modified either by MIPS program or by user editing it on the MARS user interface.
update(Observable, Object) - Method in class mars.tools.AbstractMarsToolAndApplication
Called when receiving notice of access to MIPS memory or registers.
updateCell(int, int) - Method in class mars.venus.DataSegmentWindow
Update data display to show this value (I'm not sure it is being called).
updateCodeAddresses() - Method in class mars.venus.TextSegmentWindow
Redisplay the addresses.
updateDataAddresses() - Method in class mars.venus.DataSegmentWindow
Redisplay the addresses.
updateDisplay() - Method in class mars.tools.MemoryReferenceVisualization
Updates display immediately after each update (AccessNotice) is processed, after display configuration changes as needed, and after each execution step when Mars is running in timed mode.
updateDisplay() - Method in class mars.tools.AbstractMarsToolAndApplication
Override this method to implement updating of GUI after each MIPS instruction is executed, while running in "timed" mode (user specifies execution speed on the slider control).
updateDisplay() - Method in class mars.tools.CacheSimulator
Updates display immediately after each update (AccessNotice) is processed, after cache configuration changes as needed, and after each execution step when Mars is running in timed mode.
updateDoubleRegisterValue(int, int) - Method in class mars.venus.Coprocessor1Window
This method handles the updating of the GUI.
updateFloatRegisterValue(int, int, int) - Method in class mars.venus.Coprocessor1Window
This method handles the updating of the GUI.
updateLabelAddresses() - Method in class mars.venus.LabelsWindow
Method to update display of label addresses.
updateModelForMemoryRange(int) - Method in class mars.venus.DataSegmentWindow
Update table model with contents of new memory "chunk".
updateRegister(int, int) - Static method in class mars.mips.hardware.RegisterFile
This method updates the register value who's number is num.
updateRegister(int, int) - Static method in class mars.mips.hardware.Coprocessor1
This method updates the FPU register value who's number is num.
updateRegister(int, int) - Static method in class mars.mips.hardware.Coprocessor0
This method updates the register value who's number is num.
updateRegister(String, int) - Static method in class mars.mips.hardware.RegisterFile
Sets the value of the register given to the value given.
updateRegister(String, int) - Static method in class mars.mips.hardware.Coprocessor0
Sets the value of the register given to the value given.
updateRegisters() - Method in class mars.venus.RegistersWindow
update register display using current number base (10 or 16)
updateRegisters() - Method in class mars.venus.Coprocessor1Window
Redisplay registers using current display number base (10 or 16)
updateRegisters() - Method in class mars.venus.Coprocessor0Window
Update register display using current display base (10 or 16)
updateRegisters(int) - Method in class mars.venus.RegistersWindow
update register display using specified number base (10 or 16)
updateRegisters(int) - Method in class mars.venus.Coprocessor1Window
Redisplay registers using specified display number base (10 or 16)
updateRegisters(int) - Method in class mars.venus.Coprocessor0Window
Update register display using specified display base
updateRegisterValue(int, int, int) - Method in class mars.venus.RegistersWindow
This method handles the updating of the GUI.
updateRegisterValue(int, int, int) - Method in class mars.venus.Coprocessor0Window
This method handles the updating of the GUI.
updateValues() - Method in class mars.venus.DataSegmentWindow
Update data display to show all values
userHighAddress - Static variable in class mars.mips.hardware.Memory
highest address accessible in user (not kernel) mode.
userInputAlert - Static variable in class mars.Globals
String to GUI's RunI/O text area when echoing user input from pop-up dialog.

V

VADDR - Static variable in class mars.mips.hardware.Coprocessor0
Coprocessor register names
VenusUI - class mars.venus.VenusUI.
Top level container for Venus GUI.
VenusUI(String) - Constructor for class mars.venus.VenusUI
Constructor for the Class.
version - Static variable in class mars.Globals
The current MARS version number.

W

WARNING - Static variable in class mars.ErrorMessage
Constant to indicate this message is warning not error
warningCount() - Method in class mars.ErrorList
Count of number of warning messages in list.
warningsOccurred() - Method in class mars.ErrorList
Determine whether warning has occured or not.
width - Variable in class mars.venus.HardcopyWriter
 
WORD - Static variable in class mars.assembler.Directives
 
WORD_LENGTH_BYTES - Static variable in class mars.mips.hardware.Memory
MIPS word length in bytes.
WORD_SIZE - Static variable in class mars.assembler.DataTypes
Number of bytes occupied by MIPS word is 4.
wordAligned(int) - Static method in class mars.mips.hardware.Memory
Utility to determine if given address is word-aligned.
WRITE - Static variable in class mars.mips.hardware.AccessNotice
Indicates the purpose of access was to write.
write(char[], int, int) - Method in class mars.venus.HardcopyWriter
This is the write( ) method of the stream.
writeToFile(int, byte[], int) - Static method in class mars.util.SystemIO
Write bytes to file.

X

x0 - Variable in class mars.venus.HardcopyWriter
 

Y

y0 - Variable in class mars.venus.HardcopyWriter
 

A B C D E F G H I J K L M N O P Q R S T U V W X Y