-
Notifications
You must be signed in to change notification settings - Fork 4
Simulator
Darren Kulp edited this page Sep 8, 2012
·
11 revisions
The tenyr simulator (tsim.c
) simulates the tenyr machine, reading output files (generally, .texe
files) produced by the assembler.
tsim --help
produces the following usage description :
Usage: ./tsim [ OPTIONS ] image-file
Options:
-@, --options=X use options from file X
-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.4.2-0-ge0eb8cf'
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
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 plugin