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