Previous 199869 Revisions Next

r39867 Tuesday 21st July, 2015 at 21:27:52 UTC by Joakim Larsson Edström
reverted some commits not needed for this pull request
[hash]vectrex.xml
[src/emu/debug]debugcmd.c debughlp.c

trunk/hash/vectrex.xml
r248378r248379
1313
1414<softwarelist name="vectrex" description="GCE Vectrex cartridges">
1515
16   <software name="bouncer">
17      <description>Bouncer - things bouncing in a box</description>
18      <year>2015</year>
19      <publisher>Joakim Larsson Edstrom</publisher>
20      <part name="cart" interface="vectrex_cart">
21         <feature name="slot" value="vec_rom" />
22         <dataarea name="rom" size="8192">
23            <rom name="bouncer.bin" size="8192" crc="b2313487" sha1="1731e892da8945fe4945b43847d23960c581682a" offset="0" />
24         </dataarea>
25      </part>
26   </software>
27
2816   <software name="3dminest">
2917      <description>3D Mine Storm</description>
3018      <year>1983</year>
trunk/src/emu/debug/debugcmd.c
r248378r248379
9393static UINT64 global_get(symbol_table &table, void *ref);
9494static void global_set(symbol_table &table, void *ref, UINT64 value);
9595
96static void execute_show(running_machine &machine, int ref, int params, const char **param);
9796static void execute_help(running_machine &machine, int ref, int params, const char **param);
9897static void execute_print(running_machine &machine, int ref, int params, const char **param);
9998static void execute_printf(running_machine &machine, int ref, int params, const char **param);
r248378r248379
268267   }
269268
270269   /* add all the commands */
271   debug_console_register_command(machine, "show",      CMDFLAG_NONE, 0, 0, 1, execute_show);
272270   debug_console_register_command(machine, "help",      CMDFLAG_NONE, 0, 0, 1, execute_help);
273271   debug_console_register_command(machine, "print",     CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, execute_print);
274272   debug_console_register_command(machine, "printf",    CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, execute_printf);
r248378r248379
672670***************************************************************************/
673671
674672/*-------------------------------------------------
675    show infos of various kind
676-------------------------------------------------*/
677
678static void execute_show(running_machine &machine, int ref, int params, const char *param[])
679{
680   class cpu_device *cpu;
681   static long long unsigned int last = 0uLL;
682
683   /* CPU is implicit */
684   if (!debug_command_parameter_cpu(machine, NULL, (device_t **) &cpu))
685      return;
686
687   if (params == 0)
688   {
689           debug_console_printf(machine, "Show what?\n");
690   }
691   else if (params == 1)
692   {
693           if (!strcmp(param[0], "clock"))
694           {
695                   debug_console_printf(machine, "The clock is: %lld(0x%llx) and that is %lld(0x%llx) CPU clock cycles since last 'show clock' command\n",
696                    cpu->total_cycles(), cpu->total_cycles(), cpu->total_cycles() - last, cpu->total_cycles() - last);
697         last = cpu->total_cycles();
698      }
699      else
700      {
701        debug_console_printf(machine, "Unknown property %s. ", param[0]);
702        debug_console_printf(machine, "Valid properties are: 'clock'\n");
703      }
704   }
705}
706
707/*-------------------------------------------------
708673    execute_help - execute the help command
709674-------------------------------------------------*/
710675
trunk/src/emu/debug/debughlp.c
r248378r248379
14571457      "\n"
14581458      "unmount cart\n"
14591459      "  Unmounts any file mounted on device named cart.\n"
1460   },
1461   {
1462      "show",
1463      "\n"
1464      "  show <property>\n"
1465      "\n"
1466      "Shows the value(s) of a property.\nValid properties are:\n"
1467      " clock - prints the total number of clockcycles consumed from reset and the diff from last time the command was issued.\n"
1468      "\n"
1469      "Examples:\n"
1470      "\n"
1471      "show clock\n"
1472      " The clock is: 4816918(0x00498016) and that is 3(0x3) CPU clock cycles since last 'show clock' command\n\n"
14731460   }
14741461};
14751462


Previous 199869 Revisions Next


© 1997-2024 The MAME Team