mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-01 05:55:23 +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.
19 lines
182 B
ArmAsm
19 lines
182 B
ArmAsm
# check the OR insn.
|
|
# mach: example
|
|
|
|
.include "testutils.inc"
|
|
|
|
start
|
|
JMP 3
|
|
HALT
|
|
|
|
OR r2, 0xf, 0x80
|
|
EQ r3, r2, 0x8f
|
|
JF r3, 2
|
|
|
|
OR r2, r2, 0xff
|
|
EQ r3, r2, 0xff
|
|
JF r3, 2
|
|
|
|
pass
|