Canola
0.8.D001
|
00001 // 00002 // canola - canon canola 1614p emulator 00003 // Copyright (C) 2012 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License, version 3, as 00007 // published by the Free Software Foundation. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 // General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License along 00015 // with this program. If not, see <http://www.gnu.org/licenses/>. 00016 // 00017 00018 #include <canola/calculator/proxy.h> 00019 00020 00021 calculator_proxy::~calculator_proxy() 00022 { 00023 } 00024 00025 00026 calculator_proxy::calculator_proxy(calculator &a_deeper) : 00027 deeper(a_deeper) 00028 { 00029 } 00030 00031 00032 void 00033 calculator_proxy::on_error_v(const char *fmt, va_list ap) 00034 { 00035 deeper.on_error_v(fmt, ap); 00036 } 00037 00038 00039 void 00040 calculator_proxy::run(void) 00041 { 00042 } 00043 00044 00045 void 00046 calculator_proxy::clock_tick_start_running(void) 00047 { 00048 } 00049 00050 00051 void 00052 calculator_proxy::derived_print(const display &) 00053 { 00054 } 00055 00056 00057 void 00058 calculator_proxy::derived_feed(void) 00059 { 00060 } 00061 00062 00063 void 00064 calculator_proxy::derived_off(void) 00065 { 00066 } 00067 00068 00069 void 00070 calculator_proxy::derived_update_display(const display &) 00071 { 00072 } 00073 00074 00075 void 00076 calculator_proxy::printer_timer_start_running(void) 00077 { 00078 } 00079 00080 00081 void 00082 calculator_proxy::forward(int addr) 00083 { 00084 unsigned char prog = 0; 00085 location::pointer where; 00086 if (get_step(addr, prog, where)) 00087 deeper.on_opcode((opcode_t)prog, where); 00088 }