|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAssembler
Interface for assemblers that transform assembler files into binary object code.
Method Summary | |
---|---|
int |
adr2row(int i)
compute at which line in the assembler code a absolute pc is displayed. |
void |
assemble(String name,
InputStream program)
Assemble a given program string and generated object code in readable hex coded format and instruction array. |
void |
assemble(String name,
String program)
Assemble a given program string and return object code information in readable hex coded format. |
String |
canExecute(IConfig c)
Check whether the Assembler can be executed on the current processor This should check, whether the correct processor (KEP/KReP) is used, and whether it has enough resources, like number of signals, etc. |
LinkedList<Signal> |
getInputs()
After a program has been assembled, a list of input signals can be extracted. |
String[][] |
getInstructions()
After a program has been assembled, an array with the contained instructions can be extracted. |
String |
getName()
|
String[] |
getObj(IConfig c)
After a program has been assembled, an array with the contained object-code can be extracted. |
LinkedList<Signal> |
getOutputs()
After a program has been assembled, a list of output signals can be extracted. |
HashMap<String,Integer> |
getSignalIndex()
|
int |
getTickLen()
|
int |
size()
The number of instructions in the program. |
Method Detail |
---|
String getName()
void assemble(String name, String program) throws ParseException
name
- Name of the programprogram
- assembler program
ParseException
- when the input string has an invalid formatvoid assemble(String name, InputStream program) throws ParseException
name
- Name of the programprogram
- assembler program
ParseException
- when the input string has an invalid formatLinkedList<Signal> getInputs()
LinkedList<Signal> getOutputs()
String[][] getInstructions()
"loop0:"
, or an empty string if there is
no label for that instruction. The third string contains the readable
assembler instruction code.
String[] getObj(IConfig c)
c
- configuration of the current processor
String canExecute(IConfig c)
c
- the configuration
HashMap<String,Integer> getSignalIndex()
int adr2row(int i)
i
- absolute address in memory
int size()
int getTickLen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |