binutils-gdb/sim/testsuite/example-synacor/and.s
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

19 lines
188 B
ArmAsm

# check the AND insn.
# mach: example
.include "testutils.inc"
start
JMP 3
HALT
AND r2, 0xfff, 0x7f0c
EQ r3, r2, 0xf0c
JF r3, 2
AND r2, r2, 0xf
EQ r3, r2, 0xc
JF r3, 2
pass