Skip to content
Darren Kulp edited this page Aug 21, 2012 · 11 revisions

The tenyr simulator (tsim.c) simulates the tenyr machine, reading output files produced by the assembler.

tsim --help produces the following usage description :

Usage: ./tsim [ OPTIONS ] image-file
Options:
  -a, --address=N       load instructions into memory at word address N
  -d, --debug           start the simulator in debugger mode
  -f, --format=F        select input format (obj, raw, text)
  -n, --scratch         don't run default recipes
  -p, --param=X=Y       set parameter X to value Y
  -r, --recipe=R        run recipe R (see list below)
  -s, --start=N         start execution at word address N
  -v, --verbose         increase verbosity of output

  -h, --help            display this message
  -V, --version         print the string 'tsim version v0.3.4-260-ga591c1d'

Available recipes:
  abort: call abort() when an illegal instruction is simulated
  prealloc: preallocate memory (higher memory footprint, maybe faster)
  sparse: use sparse memory (lower memory footprint, maybe slower)
  serial: enable simple serial device and connect to stdio
  spi: enable SPI emulation
  inittrap: initialise unused memory to the illegal instruction
  nowrap: stop when PC wraps around 24-bit boundary
  plugin: load plugins specified through param mechanism
Default recipes:
  sparse serial inittrap nowrap 
Clone this wiki locally