mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
26da232cbd
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.
15 lines
127 B
ArmAsm
15 lines
127 B
ArmAsm
# check the CALL insn.
|
|
# mach: example
|
|
|
|
.include "testutils.inc"
|
|
|
|
start
|
|
CALL 3
|
|
HALT
|
|
|
|
POP r0
|
|
EQ r1, r0, 2
|
|
JF r1, 2
|
|
|
|
pass
|