summaryrefslogtreecommitdiff
path: root/modules/parsers/gas/tests/bin/gas-macro.asm
blob: 29b475cc9049dbaf5ee8d6ea24a5949cd961d34d (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
.macro foo arg1, arg2
.byte \arg1
.byte \arg2
.endm

.macro bar x y
.byte \x-\y
.endm

.macro def a=5 b
.byte \a + \b
.endm

.macro nest x=9
.macro zap y
.byte \y
.endm
zap \x
.endm

foo 5 6
bar 3, 2
def ,3
def 3 2
nest