sim: example-synacor: a simple implementation for reference

Provide a simple example simulator for people porting to new targets
to use as a reference.  This one has the advantage of being used by
people and having a fun program available for it.

It doesn't require a special target -- the example simulators can be
built for any existing port.
This commit is contained in:
Mike Frysinger
2020-12-09 22:26:30 -05:00
parent a389375f5b
commit 26da232cbd
34 changed files with 16037 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
# check the NOT insn.
# mach: example
.include "testutils.inc"
start
JMP 3
HALT
SET r2, 0xc
NOT r0, r2
EQ r3, r0, 0x7ff3
JF r3, 2
pass