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 TypeMethodDescriptionvoidAssembler.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 TypeMethodDescriptionvoidMemory.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 TypeMethodDescriptionvoidSimulationFunction.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 voidAbstractSyscall.simulate(BasicStatement statement) Performs syscall function.voidSyscall.simulate(BasicStatement statement) Performs syscall function.voidSyscallClose.simulate(BasicStatement statement) Performs syscall function to close file descriptor given in $a0.voidSyscallConfirmDialog.simulate(BasicStatement statement) System call to display a message to user.voidSyscallExit.simulate(BasicStatement statement) Performs syscall function to exit the MIPS program.voidSyscallExit2.simulate(BasicStatement statement) Performs syscall function to exit the MIPS program with return value given in $a0.voidSyscallInputDialogDouble.simulate(BasicStatement statement) System call to input data.voidSyscallInputDialogFloat.simulate(BasicStatement statement) System call to input data.voidSyscallInputDialogInt.simulate(BasicStatement statement) System call to input data.voidSyscallInputDialogString.simulate(BasicStatement statement) System call to input data.voidSyscallMessageDialog.simulate(BasicStatement statement) System call to display a message to user.voidSyscallMessageDialogDouble.simulate(BasicStatement statement) System call to display a message to user.voidSyscallMessageDialogFloat.simulate(BasicStatement statement) System call to display a message to user.voidSyscallMessageDialogInt.simulate(BasicStatement statement) System call to display a message to user.voidSyscallMessageDialogString.simulate(BasicStatement statement) System call to display a message to user.voidSyscallMidiOut.simulate(BasicStatement statement) Performs syscall function to send MIDI output to sound card.voidSyscallMidiOutSync.simulate(BasicStatement statement) Performs syscall function to send MIDI output to sound card.voidSyscallOpen.simulate(BasicStatement statement) Performs syscall function to open file name specified by $a0.voidSyscallPrintChar.simulate(BasicStatement statement) Performs syscall function to print on the console the character stored in $a0.voidSyscallPrintDouble.simulate(BasicStatement statement) Performs syscall function to print double whose bits are stored in $f12 and $f13.voidSyscallPrintFloat.simulate(BasicStatement statement) Performs syscall function to display float whose bits are stored in $f12.voidSyscallPrintInt.simulate(BasicStatement statement) Performs syscall function to print on the console the integer stored in $a0.voidSyscallPrintIntBinary.simulate(BasicStatement statement) Performs syscall function to print on the console the integer stored in $a0, in binary format.voidSyscallPrintIntHex.simulate(BasicStatement statement) Performs syscall function to print on the console the integer stored in $a0, in hexadecimal format.voidSyscallPrintIntUnsigned.simulate(BasicStatement statement) Performs syscall function to print on the console the integer stored in $a0.voidSyscallPrintIOMessage.simulate(BasicStatement statement) Performs syscall function to print the most recent file operation message, as defined inSystemIO.getFileOperationMessage(), followed by a newline.voidSyscallPrintString.simulate(BasicStatement statement) Performs syscall function to print string stored starting at address in $a0.voidSyscallRandDouble.simulate(BasicStatement statement) System call to the random number generator.voidSyscallRandFloat.simulate(BasicStatement statement) System call to the random number generator.voidSyscallRandInt.simulate(BasicStatement statement) System call to the random number generator.voidSyscallRandIntRange.simulate(BasicStatement statement) System call to the random number generator, with an upper range specified.voidSyscallRandSeed.simulate(BasicStatement statement) Set the seed of the underlying Java pseudorandom number generator.voidSyscallRead.simulate(BasicStatement statement) Performs syscall function to read from file descriptor given in $a0.voidSyscallReadChar.simulate(BasicStatement statement) Performs syscall function to read a character from input console into $v0.voidSyscallReadDouble.simulate(BasicStatement statement) Performs syscall function to read the bits of input double into $f0 and $f1.voidSyscallReadFloat.simulate(BasicStatement statement) Performs syscall function to read the bits of input float into $f0.voidSyscallReadInt.simulate(BasicStatement statement) Performs syscall function to read an integer from input console into $v0voidSyscallReadString.simulate(BasicStatement statement) Performs syscall function to read console input string into buffer starting at address in $a0.voidSyscallSbrk.simulate(BasicStatement statement) Performs syscall function to allocate amount of heap memory specified in $a0, putting address into $v0.voidSyscallSeek.simulate(BasicStatement statement) Performs syscall function to seek position of file descriptor given in $a0.voidSyscallSleep.simulate(BasicStatement statement) System call to cause the MARS Java thread to sleep for (at least) the specified number of milliseconds.voidSyscallTime.simulate(BasicStatement statement) Performs syscall function to place current system time into $a0 (low order 32 bits) and $a1 (high order 32 bits).voidSyscallWrite.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 TypeMethodDescriptionvoidBackStepper.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 intBHTSimulator.extractBranchAddress(int address, BasicStatement statement) Extracts the target address of the branch.protected intInstructionStatistics.getInstructionCategory(BasicStatement stmt) decodes the instruction and determines the category of the instruction.protected voidBHTSimulator.handlePreBranchInst(int address, BasicStatement statement) Handles the execution branch instruction.protected static booleanBHTSimulator.isBranchInstruction(BasicStatement statement) Determines if the instruction is a branch instruction or not.protected static booleanBHTSimulator.willBranch(BasicStatement statement) Checks if the branch instruction delivered as parameter will branch or not.