]>
Commit | Line | Data |
---|---|---|
296730a5 MF |
1 | /* This file is part of SIS (SPARC instruction simulator) |
2 | ||
1d506c26 | 3 | Copyright (C) 1995-2024 Free Software Foundation, Inc. |
296730a5 | 4 | Contributed by Jiri Gaisler, European Space Agency |
17d88f73 JB |
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 | ||
6df01ab8 MF |
19 | /* This must come before any other includes. */ |
20 | #include "defs.h" | |
21 | ||
c906108c SS |
22 | #include <stdio.h> |
23 | #include "sis.h" | |
24 | ||
25 | void | |
81e6e8ae | 26 | usage(void) |
c906108c SS |
27 | { |
28 | ||
29 | printf("usage: sis [-uart1 uart_device1] [-uart2 uart_device2]\n"); | |
638fcdad | 30 | printf("[-sparclite] [-dumbio] [-v] \n"); |
c906108c | 31 | printf("[-nfp] [-freq frequency] [-c batch_file] [files]\n"); |
c906108c SS |
32 | } |
33 | ||
34 | void | |
81e6e8ae | 35 | gen_help(void) |
c906108c SS |
36 | { |
37 | ||
38 | printf("\n batch <file> execute a batch file of SIS commands\n"); | |
39 | printf(" +bp <addr> add a breakpoint at <addr>\n"); | |
40 | printf(" -bp <num> delete breakpoint <num>\n"); | |
41 | printf(" bp print all breakpoints\n"); | |
42 | printf(" cont [icnt] continue execution for [icnt] instructions\n"); | |
43 | printf(" deb <level> set debug level\n"); | |
44 | printf(" dis [addr] [count] disassemble [count] instructions at address [addr]\n"); | |
45 | printf(" echo <string> print <string> to the simulator window\n"); | |
46 | #ifdef ERRINJ | |
47 | printf(" error <period> inject error traps in IU and FPU\n"); | |
48 | #endif | |
49 | printf(" float print the FPU registers\n"); | |
50 | printf(" go <addr> [icnt] start execution at <addr> for [icnt] instructions\n"); | |
51 | printf(" hist [trace_length] enable/show trace history\n"); | |
52 | printf(" load <file_name> load a file into simulator memory\n"); | |
53 | printf(" mem [addr] [count] display memory at [addr] for [count] bytes\n"); | |
54 | printf(" quit exit the simulator\n"); | |
55 | printf(" perf [reset] show/reset performance statistics\n"); | |
56 | printf(" reg [w<0-7>] show integer registers (or windows, eg 're w2')\n"); | |
57 | printf(" run [inst_count] reset and start execution for [icnt] instruction\n"); | |
58 | printf(" step single step\n"); | |
59 | printf(" tra [inst_count] trace [inst_count] instructions\n"); | |
60 | printf("\n type Ctrl-C to interrupt execution\n\n"); | |
61 | } |