2 * Simulator of microcontrollers (sim.src/simcl.h)
4 * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
6 * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
10 /* This file is part of microcontroller simulator: ucsim.
12 UCSIM is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 UCSIM is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with UCSIM; see the file COPYING. If not, write to the Free
24 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
28 #ifndef SIM_SIMCL_HEADER
29 #define SIM_SIMCL_HEADER
47 class cl_sim: public cl_base
51 int state; // See SIM_XXXX
52 int argc; char **argv;
54 //class cl_commander *cmd;
59 //class cl_list *arguments;
62 cl_sim(class cl_app *the_app);
63 virtual ~cl_sim(void);
64 virtual int init(void);
66 virtual class cl_uc *mk_controller(void);
67 virtual void build_cmdset(class cl_cmdset *cmdset);
69 virtual class cl_uc *get_uc(void) { return(uc); }
71 // messages from app to handle and broadcast
72 //virtual void mem_cell_changed(class cl_address_space *m, t_addr addr);
74 virtual int main(void);
75 virtual void start(class cl_console *con);
76 virtual void stop(int reason);
77 virtual void stop(class cl_ev_brk *brk);
78 virtual int step(void);