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 TypeMethodDescriptionvoidMemory.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 TypeMethodDescriptionvoidSimulationCode.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 voidAbstractSyscall.simulate(ProgramStatement statement)Performs syscall function.voidSyscall.simulate(ProgramStatement statement)Performs syscall function.voidSyscallClose.simulate(ProgramStatement statement)Performs syscall function to close file descriptor given in $a0.voidSyscallConfirmDialog.simulate(ProgramStatement statement)System call to display a message to user.voidSyscallExit.simulate(ProgramStatement statement)Performs syscall function to exit the MIPS program.voidSyscallExit2.simulate(ProgramStatement statement)Performs syscall function to exit the MIPS program with return value given in $a0.voidSyscallInputDialogDouble.simulate(ProgramStatement statement)System call to input data.voidSyscallInputDialogFloat.simulate(ProgramStatement statement)System call to input data.voidSyscallInputDialogInt.simulate(ProgramStatement statement)System call to input data.voidSyscallInputDialogString.simulate(ProgramStatement statement)System call to input data.voidSyscallMessageDialog.simulate(ProgramStatement statement)System call to display a message to user.voidSyscallMessageDialogDouble.simulate(ProgramStatement statement)System call to display a message to user.voidSyscallMessageDialogFloat.simulate(ProgramStatement statement)System call to display a message to user.voidSyscallMessageDialogInt.simulate(ProgramStatement statement)System call to display a message to user.voidSyscallMessageDialogString.simulate(ProgramStatement statement)System call to display a message to user.voidSyscallMidiOut.simulate(ProgramStatement statement)Performs syscall function to send MIDI output to sound card.voidSyscallMidiOutSync.simulate(ProgramStatement statement)Performs syscall function to send MIDI output to sound card.voidSyscallOpen.simulate(ProgramStatement statement)Performs syscall function to open file name specified by $a0.voidSyscallPrintChar.simulate(ProgramStatement statement)Performs syscall function to print on the console the character stored in $a0.voidSyscallPrintDouble.simulate(ProgramStatement statement)Performs syscall function to print double whose bits are stored in $f12 & $f13.voidSyscallPrintFloat.simulate(ProgramStatement statement)Performs syscall function to display float whose bits are stored in $f12voidSyscallPrintInt.simulate(ProgramStatement statement)Performs syscall function to print on the console the integer stored in $a0.voidSyscallPrintIntBinary.simulate(ProgramStatement statement)Performs syscall function to print on the console the integer stored in $a0, in hexadecimal format.voidSyscallPrintIntHex.simulate(ProgramStatement statement)Performs syscall function to print on the console the integer stored in $a0, in hexadecimal format.voidSyscallPrintIntUnsigned.simulate(ProgramStatement statement)Performs syscall function to print on the console the integer stored in $a0.voidSyscallPrintString.simulate(ProgramStatement statement)Performs syscall function to print string stored starting at address in $a0.voidSyscallRandDouble.simulate(ProgramStatement statement)System call to the random number generator.voidSyscallRandFloat.simulate(ProgramStatement statement)System call to the random number generator.voidSyscallRandInt.simulate(ProgramStatement statement)System call to the random number generator.voidSyscallRandIntRange.simulate(ProgramStatement statement)System call to the random number generator, with an upper range specified.voidSyscallRandSeed.simulate(ProgramStatement statement)Set the seed of the underlying Java pseudorandom number generator.voidSyscallRead.simulate(ProgramStatement statement)Performs syscall function to read from file descriptor given in $a0.voidSyscallReadChar.simulate(ProgramStatement statement)Performs syscall function to read a character from input console into $a0voidSyscallReadDouble.simulate(ProgramStatement statement)Performs syscall function to read the bits of input double into $f0 and $f1.voidSyscallReadFloat.simulate(ProgramStatement statement)Performs syscall function to read the bits of input float into $f0voidSyscallReadInt.simulate(ProgramStatement statement)Performs syscall function to read an integer from input console into $v0voidSyscallReadString.simulate(ProgramStatement statement)Performs syscall function to read console input string into buffer starting at address in $a0.voidSyscallSbrk.simulate(ProgramStatement statement)Performs syscall function to allocate amount of heap memory specified in $a0, putting address into $v0.voidSyscallSleep.simulate(ProgramStatement statement)System call to cause the MARS Java thread to sleep for (at least) the specified number of milliseconds.voidSyscallTime.simulate(ProgramStatement statement)Performs syscall function to place current system time into $a0 (low order 32 bits) and $a1 (high order 32 bits).voidSyscallWrite.simulate(ProgramStatement statement)Performs syscall function to write to file descriptor given in $a0.