Inheritance diagram for MyControl:
Public Methods | |
void | onException (Exception *e) |
void | onComplete (Word_int result) |
int | onBreak () |
Word_int | onInput () throw (Failure) |
void | onOutput_int (Word_int value) throw (Failure) |
void | onOutput_char (Word_int value) throw (Failure) |
|
Allows controlling execution of CMa::Interpreter. Before the first instruction is executed, this function is called. Let X > 0 be the return value. After that exactly X instructions are executed, and then the process is repeated. If X == 0, interpreation is stopped and no other function of this interface is called.
Implements CMa::Control< Word_int >. |
|
Called when CMa completes its execution and the stack contains exactly one word.
Implements CMa::Control< Word_int >. |
|
Called when exception occurs in the CMa. No other function of this interface will be called after that and interpreter will stop immediately.
Implements CMa::Control< Word_int >. |
|
Called when instruction READI is executed.
Implements CMa::Control< Word_int >. |
|
Called when instrucition WRITEC is executed. Writes char into output.
Implements CMa::Control< Word_int >. |
|
Called when instrucition WRITEI is executed. Writes int into output.
Implements CMa::Control< Word_int >. |