tests/languages/armasm/variable_feature.test
raw| 1 | MACRO |
| 2 | $label TestAndBranch $dest, $reg, $cc |
| 3 | $label CMP $reg, #0 |
| 4 | B$cc $dest |
| 5 | MEND |
| 6 | |
| 7 | ---------------------------------------------------- |
| 8 | |
| 9 | [ |
| 10 | ["directive", "MACRO"], |
| 11 | |
| 12 | ["variable", "$label"], |
| 13 | " TestAndBranch ", |
| 14 | ["variable", "$dest"], |
| 15 | ["punctuation", ","], |
| 16 | ["variable", "$reg"], |
| 17 | ["punctuation", ","], |
| 18 | ["variable", "$cc"], |
| 19 | |
| 20 | ["variable", "$label"], |
| 21 | " CMP ", |
| 22 | ["variable", "$reg"], |
| 23 | ["punctuation", ","], |
| 24 | ["operator", "#"], |
| 25 | ["number", "0"], |
| 26 | |
| 27 | ["instruction", "B"], |
| 28 | ["variable", "$cc"], |
| 29 | ["variable", "$dest"], |
| 30 | |
| 31 | ["directive", "MEND"] |
| 32 | ] |