Uses of Class
mars.simulator.SimulatorException
Packages that use SimulatorException
Package
Description
-
Uses of SimulatorException in mars.assembler
Methods in mars.assembler that throw SimulatorExceptionModifier and TypeMethodDescriptionvoid
BasicStatement.simulate()
Simulate the execution of a specific MIPS basic instruction. -
Uses of SimulatorException in mars.mips.instructions
Methods in mars.mips.instructions that throw SimulatorExceptionModifier and TypeMethodDescriptionvoid
SimulationFunction.simulate
(BasicStatement statement) Simulate the execution of a statement in a program. -
Uses of SimulatorException in mars.mips.instructions.syscalls
Methods in mars.mips.instructions.syscalls that throw SimulatorExceptionModifier and TypeMethodDescriptionabstract void
AbstractSyscall.simulate
(BasicStatement statement) Performs syscall function.void
Syscall.simulate
(BasicStatement statement) Performs syscall function.void
SyscallClose.simulate
(BasicStatement statement) Performs syscall function to close file descriptor given in $a0.void
SyscallConfirmDialog.simulate
(BasicStatement statement) System call to display a message to user.void
SyscallExit.simulate
(BasicStatement statement) Performs syscall function to exit the MIPS program.void
SyscallExit2.simulate
(BasicStatement statement) Performs syscall function to exit the MIPS program with return value given in $a0.void
SyscallInputDialogDouble.simulate
(BasicStatement statement) System call to input data.void
SyscallInputDialogFloat.simulate
(BasicStatement statement) System call to input data.void
SyscallInputDialogInt.simulate
(BasicStatement statement) System call to input data.void
SyscallInputDialogString.simulate
(BasicStatement statement) System call to input data.void
SyscallMessageDialog.simulate
(BasicStatement statement) System call to display a message to user.void
SyscallMessageDialogDouble.simulate
(BasicStatement statement) System call to display a message to user.void
SyscallMessageDialogFloat.simulate
(BasicStatement statement) System call to display a message to user.void
SyscallMessageDialogInt.simulate
(BasicStatement statement) System call to display a message to user.void
SyscallMessageDialogString.simulate
(BasicStatement statement) System call to display a message to user.void
SyscallMidiOut.simulate
(BasicStatement statement) Performs syscall function to send MIDI output to sound card.void
SyscallMidiOutSync.simulate
(BasicStatement statement) Performs syscall function to send MIDI output to sound card.void
SyscallOpen.simulate
(BasicStatement statement) Performs syscall function to open file name specified by $a0.void
SyscallPrintChar.simulate
(BasicStatement statement) Performs syscall function to print on the console the character stored in $a0.void
SyscallPrintDouble.simulate
(BasicStatement statement) Performs syscall function to print double whose bits are stored in $f12 and $f13.void
SyscallPrintFloat.simulate
(BasicStatement statement) Performs syscall function to display float whose bits are stored in $f12.void
SyscallPrintInt.simulate
(BasicStatement statement) Performs syscall function to print on the console the integer stored in $a0.void
SyscallPrintIntBinary.simulate
(BasicStatement statement) Performs syscall function to print on the console the integer stored in $a0, in binary format.void
SyscallPrintIntHex.simulate
(BasicStatement statement) Performs syscall function to print on the console the integer stored in $a0, in hexadecimal format.void
SyscallPrintIntUnsigned.simulate
(BasicStatement statement) Performs syscall function to print on the console the integer stored in $a0.void
SyscallPrintIOMessage.simulate
(BasicStatement statement) Performs syscall function to print the most recent file operation message, as defined inSystemIO.getFileOperationMessage()
, followed by a newline.void
SyscallPrintString.simulate
(BasicStatement statement) Performs syscall function to print string stored starting at address in $a0.void
SyscallRandDouble.simulate
(BasicStatement statement) System call to the random number generator.void
SyscallRandFloat.simulate
(BasicStatement statement) System call to the random number generator.void
SyscallRandInt.simulate
(BasicStatement statement) System call to the random number generator.void
SyscallRandIntRange.simulate
(BasicStatement statement) System call to the random number generator, with an upper range specified.void
SyscallRandSeed.simulate
(BasicStatement statement) Set the seed of the underlying Java pseudorandom number generator.void
SyscallRead.simulate
(BasicStatement statement) Performs syscall function to read from file descriptor given in $a0.void
SyscallReadChar.simulate
(BasicStatement statement) Performs syscall function to read a character from input console into $v0.void
SyscallReadDouble.simulate
(BasicStatement statement) Performs syscall function to read the bits of input double into $f0 and $f1.void
SyscallReadFloat.simulate
(BasicStatement statement) Performs syscall function to read the bits of input float into $f0.void
SyscallReadInt.simulate
(BasicStatement statement) Performs syscall function to read an integer from input console into $v0void
SyscallReadString.simulate
(BasicStatement statement) Performs syscall function to read console input string into buffer starting at address in $a0.void
SyscallSbrk.simulate
(BasicStatement statement) Performs syscall function to allocate amount of heap memory specified in $a0, putting address into $v0.void
SyscallSeek.simulate
(BasicStatement statement) Performs syscall function to seek position of file descriptor given in $a0.void
SyscallSleep.simulate
(BasicStatement statement) System call to cause the MARS Java thread to sleep for (at least) the specified number of milliseconds.void
SyscallTime.simulate
(BasicStatement statement) Performs syscall function to place current system time into $a0 (low order 32 bits) and $a1 (high order 32 bits).void
SyscallWrite.simulate
(BasicStatement statement) Performs syscall function to write to file descriptor given in $a0. -
Uses of SimulatorException in mars.simulator
Methods in mars.simulator that return SimulatorExceptionModifier and TypeMethodDescriptionSimulatorFinishEvent.getException()
The exception causing the program to terminate (only applies toSimulatorFinishEvent.Reason.EXCEPTION
).Methods in mars.simulator with parameters of type SimulatorExceptionModifier and TypeMethodDescriptionvoid
Simulator.dispatchFinishEvent
(SimulatorFinishEvent.Reason reason, SimulatorException exception) Called when the simulator has finished execution of the current program.Methods in mars.simulator that throw SimulatorExceptionModifier and TypeMethodDescriptionvoid
Simulator.simulate
(int maxSteps, int[] breakpoints) Simulate execution of given MIPS program.void
Simulator.storeProgramArguments
(List<String> arguments) Place any program arguments into MIPS memory and registers.Constructors in mars.simulator with parameters of type SimulatorExceptionModifierConstructorDescriptionSimulatorFinishEvent
(Simulator simulator, SimulatorFinishEvent.Reason reason, SimulatorException exception) Construct a new event with the given parameters.