|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
TTK91Application |
compile(TTK91CompileSource source)
This method compiles given TTK91CompileSource into a TTK91Application. |
java.lang.String |
getBinary(TTK91Application application)
This function return the program in TTK91 binary file format |
TTK91Cpu |
getCpu()
Returns a copy of the CPU in the virtual machine |
TTK91Memory |
getMemory()
Returns a copy of the memory in the virtual machine |
TTK91Application |
loadBinary(java.lang.String binary)
Loads TTK91 binary format into a TTK91Application |
void |
run(TTK91Application app,
int steps)
This method runs given TTK91Application in the TTK91 virtual machine. |
Method Detail |
public TTK91Application compile(TTK91CompileSource source) throws TTK91Exception, TTK91CompileException
source
- TTK91CompileSource describin
TTK91CompileException
- thrown when encountered an invalid
source code.
TTK91Exception
- place holder for extension.
java.lang.IllegalArgumentException
- thrown when TTK91CompileSource
is not valid (null).public void run(TTK91Application app, int steps) throws TTK91Exception, TTK91RuntimeException
app
- Application to be run, must be created using compile
of the same TTK91Core. May not be null.steps
- number of cpu cycle's to operate without stop.
Zero (0) means to the end. anything above zero means
this much or the end. anything less than zero is error.
TTK91RuntimeException
- when encountered an invalid
operation by the TTK91Application.
TTK91Exception
- place holder for extension.
java.lang.IllegalArgumentException
- thrown when TTK91Application
is not valid, or int steps is less than zero.public TTK91Memory getMemory()
public TTK91Cpu getCpu()
public TTK91Application loadBinary(java.lang.String binary) throws java.text.ParseException
binary
- binary to load from
java.text.ParseException
- if binary is not of TTK91 binary formatpublic java.lang.String getBinary(TTK91Application application)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |