open-simh.simtools/tests/test-locals.mac
Olaf Seibert 2753b081cc Start each pass with .DSABL LSB
otherwise the end of pass 1 carries over into pass 2, which messes with
the ranges of local symbols.
2021-04-18 15:18:38 +02:00

45 lines
662 B
Plaintext

;;;;;
;
; Test long local labels
;
lab1: beq 1$
1$: bne lab1
; -- new scope
lab2a: beq 12345$
12345$: bne lab2a
; -- new scope
lab2b: beq 12345$
12345$: bne lab2b
; -- new scope
lab3: beq 1$
1$: bne 2$
2$: beq 3$
3$: beq 4$
4$: beq lab3
; -- new scope
lab4: beq 1$
1$: bne 2$
2$: beq 3$
3$: beq 4$
4$: beq lab4
; -- test if next pass sets this back to default (off)
; also test that normal labels don't delimit local ones
.enabl lsb
1$: bne 2$
2$: beq 3$
lab5: beq 1$
3$: beq 4$
4$: beq lab5