Switch erc32 simulator copyright headers to FSF.
[deliverable/binutils-gdb.git] / sim / erc32 / help.c
CommitLineData
17d88f73
JB
1/* Copyright (C) 1996-2015 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 3 of the License, or
6 (at your option) any later version.
7
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
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>. */
15
5272643f 16#include "config.h"
c906108c
SS
17#include <stdio.h>
18#include "sis.h"
19
20void
21usage()
22{
23
24 printf("usage: sis [-uart1 uart_device1] [-uart2 uart_device2]\n");
638fcdad 25 printf("[-sparclite] [-dumbio] [-v] \n");
c906108c 26 printf("[-nfp] [-freq frequency] [-c batch_file] [files]\n");
c906108c
SS
27}
28
29void
30gen_help()
31{
32
33 printf("\n batch <file> execute a batch file of SIS commands\n");
34 printf(" +bp <addr> add a breakpoint at <addr>\n");
35 printf(" -bp <num> delete breakpoint <num>\n");
36 printf(" bp print all breakpoints\n");
37 printf(" cont [icnt] continue execution for [icnt] instructions\n");
38 printf(" deb <level> set debug level\n");
39 printf(" dis [addr] [count] disassemble [count] instructions at address [addr]\n");
40 printf(" echo <string> print <string> to the simulator window\n");
41#ifdef ERRINJ
42 printf(" error <period> inject error traps in IU and FPU\n");
43#endif
44 printf(" float print the FPU registers\n");
45 printf(" go <addr> [icnt] start execution at <addr> for [icnt] instructions\n");
46 printf(" hist [trace_length] enable/show trace history\n");
47 printf(" load <file_name> load a file into simulator memory\n");
48 printf(" mem [addr] [count] display memory at [addr] for [count] bytes\n");
49 printf(" quit exit the simulator\n");
50 printf(" perf [reset] show/reset performance statistics\n");
51 printf(" reg [w<0-7>] show integer registers (or windows, eg 're w2')\n");
52 printf(" run [inst_count] reset and start execution for [icnt] instruction\n");
53 printf(" step single step\n");
54 printf(" tra [inst_count] trace [inst_count] instructions\n");
55 printf("\n type Ctrl-C to interrupt execution\n\n");
56}
This page took 0.627866 seconds and 4 git commands to generate.