mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +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
175 B
ArmAsm
19 lines
175 B
ArmAsm
# check the MULT insn.
|
|
# mach: example
|
|
|
|
.include "testutils.inc"
|
|
|
|
start
|
|
JMP 3
|
|
HALT
|
|
|
|
MULT r0, 3, 2
|
|
EQ r1, r0, 6
|
|
JF r1, 2
|
|
|
|
MULT r0, r0, 8
|
|
EQ r1, r0, 48
|
|
JF r1, 2
|
|
|
|
pass
|