binutils-gdb/sim/testsuite/example-synacor/testutils.inc
Mike Frysinger 26da232cbd 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.
2021-04-03 16:19:16 -04:00

32 lines
386 B
SQL

.include "isa.inc"
# MACRO: pass
# Write 'pass' to stdout and quit
.macro pass
OUT 'p'
OUT 'a'
OUT 's'
OUT 's'
OUT '\n'
HALT
.endm
# MACRO: fail
# Write 'fail' to stdout and quit
.macro fail
OUT 'f'
OUT 'a'
OUT 'i'
OUT 'l'
OUT '\n'
HALT
.endm
# MACRO: start
# All assembler tests should start with a call to "start"
.macro start
.text
.global _start
_start:
.endm