forked from Imagelibrary/binutils-gdb
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:
14
sim/testsuite/example-synacor/call.s
Normal file
14
sim/testsuite/example-synacor/call.s
Normal file
@@ -0,0 +1,14 @@
|
||||
# check the CALL insn.
|
||||
# mach: example
|
||||
|
||||
.include "testutils.inc"
|
||||
|
||||
start
|
||||
CALL 3
|
||||
HALT
|
||||
|
||||
POP r0
|
||||
EQ r1, r0, 2
|
||||
JF r1, 2
|
||||
|
||||
pass
|
||||
Reference in New Issue
Block a user