Files
open-simh.simtools/crossassemblers/macro11/tests/test-gbl.mac
Olaf Seibert 0e54092d45 Merge commit 'c311f6a175fd52da171795bc093762f4eba4c136' into macro11-v0.7.2
Update to latest released version of macro-11.

Command run: git subtree pull --prefix=crossassemblers/macro11 ../macro11 macro11-v0.7.2
(should be equivalent to git subtree pull --prefix=crossassemblers/macro11 git://gitlab.com/Rhialto/macro11.git macro11-v0.7.2)
2022-06-08 20:52:56 +02:00

18 lines
580 B
Plaintext

;;;;
;
; Test that .dsabl gbl at the end of the source does not carry
; over to the beginning of the next pass.
; This is actually guaranteed automatically, since it is used in pass 1 only.
; The symbol should however be entered into the symbol table as UNKNOWN.
;
mov #lab1,r0 ; ok: implicitly global (imported)
.dsabl gbl
mov #lab2,r0 ; error: undefined
.globl 1$ ; error: locals can't be globals too
.globl 2$ ; error: locals can't be globals too
1$: mov #1$,r0
.end