* sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
[fw/sdcc] / sim / ucsim / cmd.src / infocl.h
index 5b3af267d88f4c4e557789807649969b90fc3efb..870d96ab5fc5451e3e9383c3279929ef497ff7d9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Simulator of microcontrollers (infocl.h)
+ * Simulator of microcontrollers (cmd.src/infocl.h)
  *
  * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
  * 
@@ -25,49 +25,28 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 02111-1307, USA. */
 /*@1@*/
 
-#ifndef INFOCL_HEADER
-#define INFOCL_HEADER
+#ifndef CMD_INFOCL_HEADER
+#define CMD_INFOCL_HEADER
 
 #include "newcmdcl.h"
 
 
-class cl_info_bp_cmd: public cl_cmd
-{
-public:
-  cl_info_bp_cmd(class cl_sim *asim,
-                char *aname,
-                int  can_rep,
-                char *short_hlp,
-                char *long_hlp):
-    cl_cmd(asim, aname, can_rep, short_hlp, long_hlp) {}
-  virtual int do_work(class cl_cmdline *cmdline, class cl_console *con);
-};
+// INFO BP
+COMMAND_ON(uc,cl_info_bp_cmd);
 
-class cl_info_reg_cmd: public cl_cmd
-{
-public:
-  cl_info_reg_cmd(class cl_sim *asim,
-                 char *aname,
-                 int  can_rep,
-                 char *short_hlp,
-                 char *long_hlp):
-    cl_cmd(asim, aname, can_rep, short_hlp, long_hlp) {}
-  virtual int do_work(class cl_cmdline *cmdline, class cl_console *con);
-};
+// INFO REG
+COMMAND_ON(uc,cl_info_reg_cmd);
 
-class cl_info_hw_cmd: public cl_cmd
-{
-public:
-  cl_info_hw_cmd(class cl_sim *asim,
-                char *aname,
-                int  can_rep,
-                char *short_hlp,
-                char *long_hlp):
-    cl_cmd(asim, aname, can_rep, short_hlp, long_hlp) {}
-  virtual int do_work(class cl_cmdline *cmdline, class cl_console *con);
-};
+// INFO HW
+COMMAND_ON(uc,cl_info_hw_cmd);
+
+// INFO STACK
+COMMAND_ON(uc,cl_info_stack_cmd);
+
+// INFO MEMORY
+COMMAND_ON(uc,cl_info_memory_cmd);
 
 
 #endif
 
-/* End of infocl.h */
+/* End of cmd.src/infocl.h */