Uses of Class
mars.assembler.BasicStatement
Packages that use BasicStatement
Package
Description
-
Uses of BasicStatement in mars.assembler
Methods in mars.assembler that return types with arguments of type BasicStatementMethods in mars.assembler with parameters of type BasicStatementModifier and TypeMethodDescriptionvoid
Assembler.placeStatement
(BasicStatement statement, int address) -
Uses of BasicStatement in mars.assembler.extended
Methods in mars.assembler.extended that return BasicStatementModifier and TypeMethodDescriptionExpansionTemplate.Statement.resolve
(List<Operand> originalOperands, StatementSyntax syntax, Assembler assembler, int address) FlagSubstitutionStatement.resolve
(List<Operand> originalOperands, StatementSyntax syntax, Assembler assembler, int address) TemplateStatement.resolve
(List<Operand> originalOperands, StatementSyntax syntax, Assembler assembler, int address) Methods in mars.assembler.extended that return types with arguments of type BasicStatement -
Uses of BasicStatement in mars.mips.hardware
Methods in mars.mips.hardware that return BasicStatementModifier and TypeMethodDescriptionMemory.fetchStatement
(int address, boolean notify) Fetch a statement from memory at a given address, which must be aligned to a word boundary.Memory.TextRegion.fetchStatement
(int address) Fetch a statement from the region at a given address.Memory.TextRegion.storeStatement
(int address, BasicStatement statement) Store a statement in the region at a given address.Methods in mars.mips.hardware with parameters of type BasicStatementModifier and TypeMethodDescriptionvoid
Memory.storeStatement
(int address, BasicStatement statement, boolean notify) Store a statement in memory at a given address, which must be aligned to a word boundary.Memory.TextRegion.storeStatement
(int address, BasicStatement statement) Store a statement in the region at a given address. -
Uses of BasicStatement in mars.mips.instructions
Methods in mars.mips.instructions that return BasicStatementMethods in mars.mips.instructions with parameters of type BasicStatementModifier and TypeMethodDescriptionvoid
SimulationFunction.simulate
(BasicStatement statement) Simulate the execution of a statement in a program. -
Uses of BasicStatement in mars.mips.instructions.syscalls
Methods in mars.mips.instructions.syscalls with parameters of type BasicStatementModifier 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 BasicStatement in mars.simulator
Methods in mars.simulator with parameters of type BasicStatementModifier and TypeMethodDescriptionvoid
BackStepper.statementWritten
(int address, BasicStatement restoreStatement) Add a new "back step" (the undo action) to the stack.Constructors in mars.simulator with parameters of type BasicStatementModifierConstructorDescriptionSimulatorException
(BasicStatement statement, String message) Constructor for ProcessingException to handle runtime exceptionsSimulatorException
(BasicStatement statement, String message, int cause) Constructor for ProcessingException to handle runtime exceptionsSimulatorException
(BasicStatement statement, AddressErrorException exception) Constructor for ProcessingException to handle address runtime exceptions -
Uses of BasicStatement in mars.tools
Methods in mars.tools with parameters of type BasicStatementModifier and TypeMethodDescriptionprotected static int
BHTSimulator.extractBranchAddress
(int address, BasicStatement statement) Extracts the target address of the branch.protected int
InstructionStatistics.getInstructionCategory
(BasicStatement stmt) decodes the instruction and determines the category of the instruction.protected void
BHTSimulator.handlePreBranchInst
(int address, BasicStatement statement) Handles the execution branch instruction.protected static boolean
BHTSimulator.isBranchInstruction
(BasicStatement statement) Determines if the instruction is a branch instruction or not.protected static boolean
BHTSimulator.willBranch
(BasicStatement statement) Checks if the branch instruction delivered as parameter will branch or not.