Canola
0.8.D001
|
#include <asm.h>
Public Member Functions | |
virtual | ~calculator_asm () |
Static Public Member Functions | |
static pointer | create (void) |
Protected Member Functions | |
void | on_error_v (const char *fmt, va_list ap) |
void | run (void) |
void | derived_print (const display &value) |
void | derived_feed (void) |
void | derived_off (void) |
void | derived_update_display (const display &value) |
void | clock_tick_start_running (void) |
void | printer_timer_start_running (void) |
Private Member Functions | |
calculator_asm () | |
calculator_asm (const calculator_asm &rhs) | |
calculator_asm & | operator= (const calculator_asm &rhs) |
The calculator_asm class is used to represent the processing required to assemble and disassemble programs and program card images.
calculator_asm::~calculator_asm | ( | ) | [virtual] |
calculator_asm::calculator_asm | ( | ) | [private] |
calculator_asm::calculator_asm | ( | const calculator_asm & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
void calculator_asm::clock_tick_start_running | ( | void | ) | [protected, virtual] |
The clock_tick_start_running method is called by the calculator to inform the derived class that it should kick off a clock tick idle handler. This will happen when opcode_extended_start is seen, for example. Derived classes should not assume when clocks stop and start, instend they will be explicitly informed via this method.
Implements calculator.
calculator::pointer calculator_asm::create | ( | void | ) | [static] |
void calculator_asm::derived_feed | ( | void | ) | [protected, virtual] |
The derived_feed method is used to implement the FD opcode, in the cases where it is valid.
Implements calculator.
void calculator_asm::derived_off | ( | void | ) | [protected, virtual] |
The derived_off method is used to implement the OFF key.
Implements calculator.
void calculator_asm::derived_print | ( | const display & | value | ) | [protected, virtual] |
The derived_print method is used to implement the PRINT opcode, in the cases where it is valid.
value | The value to be printed. |
Implements calculator.
void calculator_asm::derived_update_display | ( | const display & | value | ) | [protected, virtual] |
The derived_update_display method is used when interpreting opcodes to indicate that the display needs to be updated to track the calculator's internal state.
value | The value to be displayed by the calculator display. |
Implements calculator.
void calculator_asm::on_error_v | ( | const char * | fmt, |
va_list | ap | ||
) | [protected, virtual] |
Implements calculator.
calculator_asm& calculator_asm::operator= | ( | const calculator_asm & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
void calculator_asm::printer_timer_start_running | ( | void | ) | [protected, virtual] |
The printer_timer_start_running method is called by the calculator to inform the derived class that it should kick off a printer delay 420ms timer. This will happen when opcode_print or opcode_feed opcode is seen. Derived classes should not assume when printer delays stop and start, instend they will be explicitly informed via this method.
Implements calculator.
void calculator_asm::run | ( | void | ) | [protected, virtual] |
The run method is used to run the calculator, from interactive input, via the GUI, or equivalent.
Implements calculator.