Uses of Class
mars.MIPSprogram
Packages that use MIPSprogram
-
Uses of MIPSprogram in mars
Fields in mars declared as MIPSprogramModifier and TypeFieldDescriptionstatic MIPSprogram
Globals.program
the program currently being worked with.Methods in mars that return MIPSprogramModifier and TypeMethodDescriptionProgramStatement.getSourceMIPSprogram()
Produces MIPSprogram object representing the source file containing this statement.Methods in mars that return types with arguments of type MIPSprogramModifier and TypeMethodDescriptionMIPSprogram.prepareFilesForAssembly(ArrayList<String> filenames, String leadFilename, String exceptionHandler)
Prepares the given list of files for assembly.Method parameters in mars with type arguments of type MIPSprogramModifier 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.Constructors in mars with parameters of type MIPSprogramModifierConstructorDescriptionErrorMessage(boolean isWarning, MIPSprogram sourceMIPSprogram, int line, int position, String message)
Constructor for ErrorMessage.ErrorMessage(MIPSprogram sourceMIPSprogram, int line, int position, String message)
Constructor for ErrorMessage.ProgramStatement(MIPSprogram sourceMIPSprogram, String source, TokenList origTokenList, TokenList strippedTokenList, Instruction inst, int textAddress, int sourceLine)
Constructor for ProgramStatement when there are links back to all source and token information. -
Uses of MIPSprogram in mars.assembler
Methods in mars.assembler that return MIPSprogramModifier and TypeMethodDescriptionSourceLine.getMIPSprogram()
Retrieve MIPSprogram object containing source statementToken.getOriginalProgram()
Produces original program containing this token.Macro.getProgram()
Token.getSourceMIPSprogram()
Produces MIPSprogram object associated with this token.Methods in mars.assembler with parameters of type MIPSprogramModifier and TypeMethodDescriptionAssembler.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.void
Token.setOriginal(MIPSprogram origProgram, int origSourceLine)
Set original program and line number for this token.void
Macro.setProgram(MIPSprogram program)
Tokenizer.tokenize(MIPSprogram p)
Will tokenize a complete MIPS program.Tokenizer.tokenizeLine(MIPSprogram program, int lineNum, String theLine, boolean doEqvSubstitutes)
Will tokenize one line of source code.Method parameters in mars.assembler with type arguments of type MIPSprogramModifier 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.Constructors in mars.assembler with parameters of type MIPSprogramModifierConstructorDescriptionMacroPool(MIPSprogram mipsProgram)
Create an empty MacroPool for given programSourceLine(String source, MIPSprogram mipsProgram, int lineNumber)
SourceLine constructorToken(TokenTypes type, String value, MIPSprogram sourceMIPSprogram, int line, int start)
Constructor for Token class.Tokenizer(MIPSprogram program)
Constructor for use with existing MIPSprogram. -
Uses of MIPSprogram in mars.mips.instructions
Methods in mars.mips.instructions with parameters of type MIPSprogramModifier and TypeMethodDescriptionstatic String
ExtendedInstruction.makeTemplateSubstitutions(MIPSprogram program, String template, TokenList theTokenList)
Given a basic instruction template and the list of tokens from an extended instruction statement, substitute operands from the token list appropriately into the template to generate the basic statement. -
Uses of MIPSprogram in mars.simulator
Methods in mars.simulator with parameters of type MIPSprogramModifier and TypeMethodDescriptionboolean
Simulator.simulate(MIPSprogram p, int pc, int maxSteps, int[] breakPoints, AbstractAction actor)
Simulate execution of given MIPS program.