|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmars.mips.instructions.InstructionSet
public class InstructionSet
The list of Instruction objects, each of which represents a MIPS instruction. The instruction may either be basic (translates into binary machine code) or extended (translates into sequence of one or more basic instructions).
Constructor Summary | |
---|---|
InstructionSet()
Creates a new InstructionSet object. |
Method Summary | |
---|---|
java.util.ArrayList |
getInstructionList()
Retrieve the current instruction set. |
java.util.ArrayList |
matchOperator(java.lang.String name)
Given an operator mnemonic, will return the corresponding Instruction object(s) from the instruction set. |
void |
populate()
Adds all instructions to the set. |
java.util.ArrayList |
prefixMatchOperator(java.lang.String name)
Given a string, will return the Instruction object(s) from the instruction set whose operator mnemonic prefix matches it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstructionSet()
Method Detail |
---|
public java.util.ArrayList getInstructionList()
public void populate()
Instruction
,
BasicInstruction
,
ExtendedInstruction
public java.util.ArrayList matchOperator(java.lang.String name)
name
- operator mnemonic (e.g. addi, sw,...)
public java.util.ArrayList prefixMatchOperator(java.lang.String name)
name
- a string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |