36beba0d625f25d90bfecfb21183d93a66f7ce29
[fw/sdcc] / sim / ucsim / cmd.src / cmdsetcl.h
1 /*
2  * Simulator of microcontrollers (cmd.src/cmdsetcl.h)
3  *
4  * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
5  * 
6  * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
7  *
8  */
9
10 /* This file is part of microcontroller simulator: ucsim.
11
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.
16
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.
21
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
25 02111-1307, USA. */
26 /*@1@*/
27
28 #ifndef CMD_CMDSETCL_HEADER
29 #define CMD_CMDSETCL_HEADER
30
31 #include "newcmdcl.h"
32
33 // STATE
34 COMMAND(cl_state_cmd);
35 COMMAND(cl_file_cmd);
36 COMMAND(cl_dl_cmd);
37 COMMAND(cl_run_cmd);
38 COMMAND(cl_stop_cmd);
39 COMMAND(cl_step_cmd);
40 COMMAND(cl_next_cmd);
41 COMMAND(cl_pc_cmd);
42 COMMAND(cl_reset_cmd);
43 COMMAND(cl_dump_cmd);
44 COMMAND_ANCESTOR(cl_di_cmd,cl_dump_cmd);
45 COMMAND_ANCESTOR(cl_dx_cmd,cl_dump_cmd);
46 COMMAND_ANCESTOR(cl_dch_cmd,cl_dump_cmd);
47 COMMAND_ANCESTOR(cl_ds_cmd,cl_dump_cmd);
48 COMMAND_DATA(cl_dc_cmd, t_addr last);
49 COMMAND_DATA(cl_disassemble_cmd,int last);
50 COMMAND_DATA(cl_fill_cmd,int last);
51 COMMAND_HEAD(cl_where_cmd)
52   public: int last;
53 COMMAND_METHODS(cl_where_cmd)
54   virtual int do_real_work(class cl_sim *sim,
55                            class cl_cmdline *cmdline, class cl_console *con,
56                            bool case_sensitive);
57 COMMAND_TAIL;
58 COMMAND_DATA_ANCESTOR(cl_Where_cmd,cl_where_cmd,int last);
59 COMMAND(cl_help_cmd);
60 COMMAND(cl_quit_cmd);
61 COMMAND(cl_kill_cmd);
62
63 COMMAND_HEAD(cl_timer_cmd)
64 public:
65   class cl_ticker *ticker;
66   long what;
67   char *name;
68 COMMAND_METHODS(cl_timer_cmd)
69   void set_ticker(class cl_sim *sim,
70                   class cl_cmd_arg *param);
71   virtual int add(class cl_sim *sim,
72                   class cl_cmdline *cmdline, class cl_console *con);
73   virtual int del(class cl_sim *sim,
74                   class cl_cmdline *cmdline, class cl_console *con);
75   virtual int get(class cl_sim *sim,
76                   class cl_cmdline *cmdline, class cl_console *con);
77   virtual int run(class cl_sim *sim,
78                   class cl_cmdline *cmdline, class cl_console *con);
79   virtual int stop(class cl_sim *sim,
80                    class cl_cmdline *cmdline, class cl_console *con);
81   virtual int val(class cl_sim *sim,
82                   class cl_cmdline *cmdline, class cl_console *con);
83 COMMAND_TAIL;
84
85
86 #endif
87
88 /* End of cmd.src/cmdsetcl.h */