+ return(DD_FALSE);;
+}
+
+
+/*
+ * Command: set bit
+ *----------------------------------------------------------------------------
+ */
+
+//int
+//cl_set_bit_cmd::do_work(class cl_sim *sim,
+// class cl_cmdline *cmdline, class cl_console_base *con)
+COMMAND_DO_WORK_UC(cl_set_bit_cmd)
+{
+ class cl_memory *mem;
+ t_addr mem_addr= 0;
+ t_mem bit_mask= 0;
+ class cl_cmd_arg *params[4]= { cmdline->param(0),
+ cmdline->param(1),
+ cmdline->param(2),
+ cmdline->param(3) };
+
+ if (cmdline->syntax_match(uc, BIT NUMBER)) {
+ mem= params[0]->value.bit.mem;
+ mem_addr= params[0]->value.bit.mem_address;
+ bit_mask= params[0]->value.bit.mask;
+ if (params[1]->value.number)
+ mem->set_bit1(mem_addr, bit_mask);
+ else
+ mem->set_bit0(mem_addr, bit_mask);
+ mem->dump(mem_addr, mem_addr, 1, con);
+ }
+ else
+ con->dd_printf("%s\n", short_help?short_help:"Error: wrong syntax\n");
+
+ return(DD_FALSE);;
+}
+
+
+/*
+ * Command: set hw
+ *----------------------------------------------------------------------------
+ */
+
+COMMAND_DO_WORK_UC(cl_set_hw_cmd)
+{
+ class cl_hw *hw= 0;
+ class cl_cmd_arg *params[1]= { cmdline->param(0)/*,
+ cmdline->param(1),
+ cmdline->param(2),
+ cmdline->param(3)*/ };
+
+ if (params[0] && /*cmdline->syntax_match(uc, HW)*/params[0]->as_hw(uc)) {
+ hw= params[0]->value.hw;
+ //pn= hw->id;
+ //l= params[1]->value.number;
+ }
+ /*else if (cmdline->syntax_match(uc, NUMBER NUMBER)) {
+ pn= params[0]->value.number;
+ l= params[1]->value.number;
+ hw= uc->get_hw(HW_PORT, pn, 0);
+ }*/
+ else
+ con->dd_printf("%s\n", short_help?short_help:"Error: wrong syntax\n");
+ /*if (pn < 0 ||
+ pn > 3)
+ con->dd_printf("Error: wrong port\n");
+ else*/