Commit | Line | Data |
---|---|---|
caa32fe5 NC |
1 | .macro m1 v1, v2 |
2 | LOCAL l1, l2 | |
3 | label&v1: | |
4 | l1: .byte v1 | |
5 | label&v2: | |
6 | l2: .byte v2 | |
7 | .endm | |
8 | ||
9 | .macro m2 v1, v2 | |
0445d020 | 10 | m1 %(v1), %(v2-v1) |
caa32fe5 NC |
11 | .endm |
12 | ||
13 | .macro m3 str | |
14 | .ascii &str | |
15 | .endm | |
16 | ||
17 | .data | |
18 | ||
19 | m2 1, 3 | |
20 | m2 9, 27 | |
21 | ||
22 | m3 "abc" | |
9f6f925e | 23 | m3 <"1", "23"> |
caa32fe5 NC |
24 | |
25 | .noaltmacro | |
26 | ||
27 | .macro m4 str | |
28 | .ascii "&str" | |
29 | .endm | |
30 | ||
31 | m4 "!!<>'" | |
32 | ||
33 | .altmacro | |
34 | ||
35 | m3 "!!<>'" |