aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/gasp/sfunc.asm
blob: b59949a9d141e2abe96fca39f2e4d431f2645a92 (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

	.MACRO	RESERVE_STR P1=0 P2
	.SDATA	.SUBSTR("ABCDEFG",\P1,\P2)
	.ENDM

	RESERVE_STR	2,2
	RESERVE_STR	,3


	.MACRO FIND_STR P1
	.DATA.W	.INSTR("ABCDEFG","\P1", 0)
	.ENDM

	FIND_STR	CDE
	FIND_STR	H

	.MACRO	RESERVE_LENGTH P1
	.ALIGN	4
	.SRES	.LEN("\P1")
	.ENDM

	RESERVE_LENGTH	ABCDEF
	RESERVE_LENGTH	ABC

	.END