aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/example-synacor/testutils.inc
blob: 0f286c6036ca24d6f81043be80abd4c9d234a9c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.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