aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/gasp/pl3.out
blob: 066194c7e27ec6a90f251fdd126c47d2651959cc (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
!	.ALTERNATE
!

!foo	MACRO	string
!	LOCAL	lab1, lab2
!lab1:	DATA.L	lab2
!lab2:	SDATA	string
!	ENDM
!

!	foo	"An example"
!	
!LL0001:	DATA.L	LL0002
LL0001:	.long	LL0002
!LL0002:	SDATA	"An example"
LL0002:	.byte	65,110,32,101,120,97,109,112,108,101
!	foo	"using LOCAL"
!	
!LL0003:	DATA.L	LL0004
LL0003:	.long	LL0004
!LL0004:	SDATA	"using LOCAL"
LL0004:	.byte	117,115,105,110,103,32,76,79,67,65,76
!

!! test of LOCAL directive
	! test of LOCAL directive
!

!chk_err	MACRO	limit
!	LOCAL		skip !! frob
!	LOCAL		zap,dog,barf
!barf:	cmp		ax,limit	!! check value against
!					!! limit
!	jle		skip		!! skip call if OK
!skip:	call	 	error
!	foo		dog
!	zap		dog	
!	nop
!	ENDM
!

!	chk_err 5
!	
!	
!LL0008:	cmp		ax,5	
LL0008:	cmp		ax,5	
!					
!	jle		LL0005		
	jle		LL0005		
!LL0005:	call	 	error
LL0005:	call	 	error
!	foo		LL0007
!	
!LL0009:	DATA.L	LL000a
LL0009:	.long	LL000a
!LL000a:	SDATA	LL0007
LL000a:	.byte	76,76,48,48,48,55
!	LL0006		LL0007	
	LL0006		LL0007	
!	nop
	nop
!	chk_err 10
!	
!	
!LL000e:	cmp		ax,10	
LL000e:	cmp		ax,10	
!					
!	jle		LL000b		
	jle		LL000b		
!LL000b:	call	 	error
LL000b:	call	 	error
!	foo		LL000d
!	
!LL000f:	DATA.L	LL0010
LL000f:	.long	LL0010
!LL0010:	SDATA	LL000d
LL0010:	.byte	76,76,48,48,48,100
!	LL000c		LL000d	
	LL000c		LL000d	
!	nop
	nop
!

!

!	END