|
||||||||||
| 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(InputStream in)
Constructs a MicroControlStore with the MicroInstruction fetched from the given stream. |
|
| Method Summary | |
|---|---|
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. |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MicroControlStore(InputStream in)
throws FileFormatException
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 FileFormatException will be
thrown.
in - the stream to read the instructions from
FileFormatException - if
IOException occurs| Method Detail |
|---|
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.protected 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||