Commit | Line | Data |
---|---|---|
5272643f | 1 | #include "config.h" |
c906108c SS |
2 | #include <stdio.h> |
3 | #include "sis.h" | |
4 | ||
5 | void | |
6 | usage() | |
7 | { | |
8 | ||
9 | printf("usage: sis [-uart1 uart_device1] [-uart2 uart_device2]\n"); | |
10 | printf("[-nfp] [-freq frequency] [-c batch_file] [files]\n"); | |
11 | printf("[-sparclite] [-dumbio]\n"); | |
12 | } | |
13 | ||
14 | void | |
15 | gen_help() | |
16 | { | |
17 | ||
18 | printf("\n batch <file> execute a batch file of SIS commands\n"); | |
19 | printf(" +bp <addr> add a breakpoint at <addr>\n"); | |
20 | printf(" -bp <num> delete breakpoint <num>\n"); | |
21 | printf(" bp print all breakpoints\n"); | |
22 | printf(" cont [icnt] continue execution for [icnt] instructions\n"); | |
23 | printf(" deb <level> set debug level\n"); | |
24 | printf(" dis [addr] [count] disassemble [count] instructions at address [addr]\n"); | |
25 | printf(" echo <string> print <string> to the simulator window\n"); | |
26 | #ifdef ERRINJ | |
27 | printf(" error <period> inject error traps in IU and FPU\n"); | |
28 | #endif | |
29 | printf(" float print the FPU registers\n"); | |
30 | printf(" go <addr> [icnt] start execution at <addr> for [icnt] instructions\n"); | |
31 | printf(" hist [trace_length] enable/show trace history\n"); | |
32 | printf(" load <file_name> load a file into simulator memory\n"); | |
33 | printf(" mem [addr] [count] display memory at [addr] for [count] bytes\n"); | |
34 | printf(" quit exit the simulator\n"); | |
35 | printf(" perf [reset] show/reset performance statistics\n"); | |
36 | printf(" reg [w<0-7>] show integer registers (or windows, eg 're w2')\n"); | |
37 | printf(" run [inst_count] reset and start execution for [icnt] instruction\n"); | |
38 | printf(" step single step\n"); | |
39 | printf(" tra [inst_count] trace [inst_count] instructions\n"); | |
40 | printf("\n type Ctrl-C to interrupt execution\n\n"); | |
41 | } |