|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.commons.AbstractCodeContainer
com.github.croesch.micro_debug.mic1.controlstore.MicroControlStore
public final class MicroControlStore
The store for MicroInstructions.
| Constructor Summary | |
|---|---|
MicroControlStore(java.io.InputStream in)
Constructs a MicroControlStore with the MicroInstruction fetched from the given stream. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
protected int |
getFirstPossibleCodeAddress()
Returns the address where the first possible code is stored. |
MicroInstruction |
getInstruction(int mpc)
Returns the instruction from the store that is stored under the given mpc (address). |
protected int |
getLastPossibleCodeAddress()
Returns the address where the last possible code is stored. |
int |
getSize()
Returns the size of this store - the number of instructions that this store contains. |
int |
hashCode()
|
protected int |
printCodeLine(int i)
Prints the line with the given number to the user. |
| Methods inherited from class com.github.croesch.micro_debug.commons.AbstractCodeContainer |
|---|
formatIntToHex, printCode, printCode, printCodeAroundLine |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MicroControlStore(java.io.InputStream in)
throws MicroFileFormatException
MicroControlStore with the MicroInstruction fetched from the given stream. If the
magic number is incorrect, or if there are too few or too many bytes to read, a MicroFileFormatException
will be thrown.
in - the stream to read the instructions from
MicroFileFormatException - if
IOException occurs| Method Detail |
|---|
@Nullable public MicroInstruction getInstruction(int mpc)
mpc - the address of the instruction to fetch - only the least nine bits will be used.
MicroInstruction that is stored at the given address, or null if there is no
instruction at the given address.public int getSize()
MicroInstructions this store can containprotected int getFirstPossibleCodeAddress()
AbstractCodeContainer
getFirstPossibleCodeAddress in class AbstractCodeContainerprotected int getLastPossibleCodeAddress()
AbstractCodeContainer
getLastPossibleCodeAddress in class AbstractCodeContainerprotected int printCodeLine(int i)
AbstractCodeContainer
printCodeLine in class AbstractCodeContaineri - the line number of the code instruction to print
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||