|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthicosim.components.backend.io.ObjectfileReader
public class ObjectfileReader
ObjectFileReader - Class for reading in and interpreting an objectfile assembled with the scotchas assembler. comment-, info-, register-, breakpoint, and linesection are ignored.
Constructor Summary | |
---|---|
ObjectfileReader(IMemory memory)
Instanciate a vector for start-/ endAddresses of hicovec code section. |
Method Summary | |
---|---|
void |
closeStreams()
close the streams |
Labels |
getLabels()
This method returns the read in labels. |
int |
getProgramCounter()
This method returns the read in programCounter. |
void |
readUnsignedBytes()
This method reads in byte per byte and fills the "instructionRegister" with the 32 bit instructions which are needed to simulate the HiCoVec processor. |
void |
readUnsignedShortsAndGetMemory()
This method reads in short per short(a 16 bit), calls getMemoryAndCalculateAddresses() and returns the read in memory. |
int |
setUp(java.lang.String pathToFile)
set up a new DataInputStream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectfileReader(IMemory memory)
Method Detail |
---|
public int setUp(java.lang.String pathToFile) throws java.lang.Exception
pathToFile
-
java.lang.Exception
public void closeStreams()
public void readUnsignedBytes()
public void readUnsignedShortsAndGetMemory()
public int getProgramCounter()
public Labels getLabels()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |