Uses of Class
mars.ProcessingException
Packages that use ProcessingException
Package
Description
-
Uses of ProcessingException in mars
Methods in mars that throw ProcessingExceptionModifier and TypeMethodDescriptionMIPSprogram.assemble(ArrayList<MIPSprogram> MIPSprogramsToAssemble, boolean extendedAssemblerEnabled)
Assembles the MIPS source program.MIPSprogram.assemble(ArrayList<MIPSprogram> MIPSprogramsToAssemble, boolean extendedAssemblerEnabled, boolean warningsAreErrors)
Assembles the MIPS source program.MIPSprogram.prepareFilesForAssembly(ArrayList<String> filenames, String leadFilename, String exceptionHandler)
Prepares the given list of files for assembly.void
MIPSprogram.readSource(String file)
Reads MIPS source code from file into structure.boolean
MIPSprogram.simulate(int maxSteps)
Simulates execution of the MIPS program.boolean
MIPSprogram.simulate(int[] breakPoints)
Simulates execution of the MIPS program.boolean
MIPSprogram.simulateFromPC(int[] breakPoints, int maxSteps, AbstractAction a)
Simulates execution of the MIPS program.boolean
MIPSprogram.simulateStepAtPC(AbstractAction a)
Simulates execution of the MIPS program.void
MIPSprogram.tokenize()
Tokenizes the MIPS source program. -
Uses of ProcessingException in mars.assembler
Methods in mars.assembler that throw ProcessingExceptionModifier and TypeMethodDescriptionAssembler.assemble(ArrayList<MIPSprogram> tokenizedProgramFiles, boolean extendedAssemblerEnabled)
Parse and generate machine code for the given MIPS program.Assembler.assemble(ArrayList<MIPSprogram> tokenizedProgramFiles, boolean extendedAssemblerEnabled, boolean warningsAreErrors)
Parse and generate machine code for the given MIPS program.Assembler.assemble(MIPSprogram p, boolean extendedAssemblerEnabled)
Parse and generate machine code for the given MIPS program.Assembler.assemble(MIPSprogram p, boolean extendedAssemblerEnabled, boolean warningsAreErrors)
Parse and generate machine code for the given MIPS program.Tokenizer.tokenize(MIPSprogram p)
Will tokenize a complete MIPS program.Tokenizer.tokenizeExampleInstruction(String example)
Used only to create a token list for the example provided with each instruction specification. -
Uses of ProcessingException in mars.mips.instructions
Methods in mars.mips.instructions that throw ProcessingExceptionModifier and TypeMethodDescriptionvoid
SimulationCode.simulate(ProgramStatement statement)
Method to simulate the execution of a specific MIPS basic instruction. -
Uses of ProcessingException in mars.mips.instructions.syscalls
Methods in mars.mips.instructions.syscalls that throw ProcessingExceptionModifier and TypeMethodDescriptionabstract void
AbstractSyscall.simulate(ProgramStatement statement)
Performs syscall function.void
Syscall.simulate(ProgramStatement statement)
Performs syscall function.void
SyscallClose.simulate(ProgramStatement statement)
Performs syscall function to close file descriptor given in $a0.void
SyscallConfirmDialog.simulate(ProgramStatement statement)
System call to display a message to user.void
SyscallExit.simulate(ProgramStatement statement)
Performs syscall function to exit the MIPS program.void
SyscallExit2.simulate(ProgramStatement statement)
Performs syscall function to exit the MIPS program with return value given in $a0.void
SyscallInputDialogDouble.simulate(ProgramStatement statement)
System call to input data.void
SyscallInputDialogFloat.simulate(ProgramStatement statement)
System call to input data.void
SyscallInputDialogInt.simulate(ProgramStatement statement)
System call to input data.void
SyscallInputDialogString.simulate(ProgramStatement statement)
System call to input data.void
SyscallMessageDialog.simulate(ProgramStatement statement)
System call to display a message to user.void
SyscallMessageDialogDouble.simulate(ProgramStatement statement)
System call to display a message to user.void
SyscallMessageDialogFloat.simulate(ProgramStatement statement)
System call to display a message to user.void
SyscallMessageDialogInt.simulate(ProgramStatement statement)
System call to display a message to user.void
SyscallMessageDialogString.simulate(ProgramStatement statement)
System call to display a message to user.void
SyscallMidiOut.simulate(ProgramStatement statement)
Performs syscall function to send MIDI output to sound card.void
SyscallMidiOutSync.simulate(ProgramStatement statement)
Performs syscall function to send MIDI output to sound card.void
SyscallOpen.simulate(ProgramStatement statement)
Performs syscall function to open file name specified by $a0.void
SyscallPrintChar.simulate(ProgramStatement statement)
Performs syscall function to print on the console the character stored in $a0.void
SyscallPrintDouble.simulate(ProgramStatement statement)
Performs syscall function to print double whose bits are stored in $f12 & $f13.void
SyscallPrintFloat.simulate(ProgramStatement statement)
Performs syscall function to display float whose bits are stored in $f12void
SyscallPrintInt.simulate(ProgramStatement statement)
Performs syscall function to print on the console the integer stored in $a0.void
SyscallPrintIntBinary.simulate(ProgramStatement statement)
Performs syscall function to print on the console the integer stored in $a0, in hexadecimal format.void
SyscallPrintIntHex.simulate(ProgramStatement statement)
Performs syscall function to print on the console the integer stored in $a0, in hexadecimal format.void
SyscallPrintIntUnsigned.simulate(ProgramStatement statement)
Performs syscall function to print on the console the integer stored in $a0.void
SyscallPrintString.simulate(ProgramStatement statement)
Performs syscall function to print string stored starting at address in $a0.void
SyscallRandDouble.simulate(ProgramStatement statement)
System call to the random number generator.void
SyscallRandFloat.simulate(ProgramStatement statement)
System call to the random number generator.void
SyscallRandInt.simulate(ProgramStatement statement)
System call to the random number generator.void
SyscallRandIntRange.simulate(ProgramStatement statement)
System call to the random number generator, with an upper range specified.void
SyscallRandSeed.simulate(ProgramStatement statement)
Set the seed of the underlying Java pseudorandom number generator.void
SyscallRead.simulate(ProgramStatement statement)
Performs syscall function to read from file descriptor given in $a0.void
SyscallReadChar.simulate(ProgramStatement statement)
Performs syscall function to read a character from input console into $a0void
SyscallReadDouble.simulate(ProgramStatement statement)
Performs syscall function to read the bits of input double into $f0 and $f1.void
SyscallReadFloat.simulate(ProgramStatement statement)
Performs syscall function to read the bits of input float into $f0void
SyscallReadInt.simulate(ProgramStatement statement)
Performs syscall function to read an integer from input console into $v0void
SyscallReadString.simulate(ProgramStatement statement)
Performs syscall function to read console input string into buffer starting at address in $a0.void
SyscallSbrk.simulate(ProgramStatement statement)
Performs syscall function to allocate amount of heap memory specified in $a0, putting address into $v0.void
SyscallSleep.simulate(ProgramStatement statement)
System call to cause the MARS Java thread to sleep for (at least) the specified number of milliseconds.void
SyscallTime.simulate(ProgramStatement statement)
Performs syscall function to place current system time into $a0 (low order 32 bits) and $a1 (high order 32 bits).void
SyscallWrite.simulate(ProgramStatement statement)
Performs syscall function to write to file descriptor given in $a0. -
Uses of ProcessingException in mars.simulator
Methods in mars.simulator that throw ProcessingExceptionModifier and TypeMethodDescriptionboolean
Simulator.simulate(MIPSprogram p, int pc, int maxSteps, int[] breakPoints, AbstractAction actor)
Simulate execution of given MIPS program. -
Uses of ProcessingException in mars.venus
Methods in mars.venus with parameters of type ProcessingExceptionModifier and TypeMethodDescriptionvoid
RunGoAction.paused(boolean done, int pauseReason, ProcessingException pe)
Method to be called when Pause is selected through menu/toolbar/shortcut.void
RunStepAction.stepped(boolean done, int reason, ProcessingException pe)
void
RunGoAction.stopped(ProcessingException pe, int reason)
Method to be called when Stop is selected through menu/toolbar/shortcut.