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