1 // symbol.s Test file for the parsing of symbols 2 3 .struct 0 4 $codesize: 5 .space 4 6 $CPU_mode: 7 .space 4 8 $entry_point: 9 .space 8 10 CPU_mode: 11 .space 4 12 13 .text 14 ldr w1, [x0, #$CPU_mode] 15 ldr w1, [x0, $CPU_mode] 16 ldr w1, [x0, #CPU_mode] 17 ldr w1, [x0, CPU_mode] 18 19 // Symbol that has the same name as that of a register 20 // is allowed as long as there is no ambiguity. 21 .set x2, 10 22 add x0, x1, x2 23 add x0, x1, #x2 24 .set s2, 11 25 sub x0, x1, s2 26