mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +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.
32 lines
386 B
SQL
32 lines
386 B
SQL
.include "isa.inc"
|
|
|
|
# MACRO: pass
|
|
# Write 'pass' to stdout and quit
|
|
.macro pass
|
|
OUT 'p'
|
|
OUT 'a'
|
|
OUT 's'
|
|
OUT 's'
|
|
OUT '\n'
|
|
HALT
|
|
.endm
|
|
|
|
# MACRO: fail
|
|
# Write 'fail' to stdout and quit
|
|
.macro fail
|
|
OUT 'f'
|
|
OUT 'a'
|
|
OUT 'i'
|
|
OUT 'l'
|
|
OUT '\n'
|
|
HALT
|
|
.endm
|
|
|
|
# MACRO: start
|
|
# All assembler tests should start with a call to "start"
|
|
.macro start
|
|
.text
|
|
.global _start
|
|
_start:
|
|
.endm
|