Uses of Class
mars.ProgramStatement
Packages that use ProgramStatement
Package
Description
-
Uses of ProgramStatement in mars
Methods in mars that return types with arguments of type ProgramStatementModifier and TypeMethodDescriptionMIPSprogram.createParsedList()
Produces new empty list to hold parsed source code statements.MIPSprogram.getMachineList()
Produces list of machine statements that are assembled from the program.MIPSprogram.getParsedList()
Produces existing list of parsed source code statements.Constructors in mars with parameters of type ProgramStatementModifierConstructorDescriptionErrorMessage(ProgramStatement statement, String message)
Constructor for ErrorMessage, to be used for runtime exceptions.Constructor for ProcessingException to handle runtime exceptionsProcessingException(ProgramStatement ps, String m, int cause)
Constructor for ProcessingException to handle runtime exceptionsConstructor for ProcessingException to handle address runtime exceptions -
Uses of ProgramStatement in mars.assembler
Methods in mars.assembler that return types with arguments of type ProgramStatementModifier 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. -
Uses of ProgramStatement in mars.mips.hardware
Methods in mars.mips.hardware that return ProgramStatementModifier and TypeMethodDescriptionMemory.getStatement(int address)
Gets ProgramStatement from Text Segment.Memory.getStatementNoNotify(int address)
Gets ProgramStatement from Text Segment without notifying observers.Methods in mars.mips.hardware with parameters of type ProgramStatementModifier and TypeMethodDescriptionvoid
Memory.setStatement(int address, ProgramStatement statement)
Stores ProgramStatement in Text Segment. -
Uses of ProgramStatement in mars.mips.instructions
Methods in mars.mips.instructions with parameters of type ProgramStatementModifier and TypeMethodDescriptionvoid
SimulationCode.simulate(ProgramStatement statement)
Method to simulate the execution of a specific MIPS basic instruction. -
Uses of ProgramStatement in mars.mips.instructions.syscalls
Methods in mars.mips.instructions.syscalls with parameters of type ProgramStatementModifier 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.