help.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* This file is part of SIS (SPARC instruction simulator)
  2. Copyright (C) 1995-2015 Free Software Foundation, Inc.
  3. Contributed by Jiri Gaisler, European Space Agency
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #include "config.h"
  15. #include <stdio.h>
  16. #include "sis.h"
  17. void
  18. usage()
  19. {
  20. printf("usage: sis [-uart1 uart_device1] [-uart2 uart_device2]\n");
  21. printf("[-sparclite] [-dumbio] [-v] \n");
  22. printf("[-nfp] [-freq frequency] [-c batch_file] [files]\n");
  23. }
  24. void
  25. gen_help()
  26. {
  27. printf("\n batch <file> execute a batch file of SIS commands\n");
  28. printf(" +bp <addr> add a breakpoint at <addr>\n");
  29. printf(" -bp <num> delete breakpoint <num>\n");
  30. printf(" bp print all breakpoints\n");
  31. printf(" cont [icnt] continue execution for [icnt] instructions\n");
  32. printf(" deb <level> set debug level\n");
  33. printf(" dis [addr] [count] disassemble [count] instructions at address [addr]\n");
  34. printf(" echo <string> print <string> to the simulator window\n");
  35. #ifdef ERRINJ
  36. printf(" error <period> inject error traps in IU and FPU\n");
  37. #endif
  38. printf(" float print the FPU registers\n");
  39. printf(" go <addr> [icnt] start execution at <addr> for [icnt] instructions\n");
  40. printf(" hist [trace_length] enable/show trace history\n");
  41. printf(" load <file_name> load a file into simulator memory\n");
  42. printf(" mem [addr] [count] display memory at [addr] for [count] bytes\n");
  43. printf(" quit exit the simulator\n");
  44. printf(" perf [reset] show/reset performance statistics\n");
  45. printf(" reg [w<0-7>] show integer registers (or windows, eg 're w2')\n");
  46. printf(" run [inst_count] reset and start execution for [icnt] instruction\n");
  47. printf(" step single step\n");
  48. printf(" tra [inst_count] trace [inst_count] instructions\n");
  49. printf("\n type Ctrl-C to interrupt execution\n\n");
  50. }