mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-21 09:19:31 +08:00
26 lines
254 B
NASM
26 lines
254 B
NASM
|
;;
|
||
|
;; Test of context-local labels
|
||
|
;;
|
||
|
|
||
|
bits 64
|
||
|
extern everywhere ; Test of extern -> global promotion, too
|
||
|
extern tjosan
|
||
|
here:
|
||
|
jz .there
|
||
|
%push foo
|
||
|
jo %$mordor
|
||
|
hlt
|
||
|
%$mordor:
|
||
|
nop
|
||
|
%pop
|
||
|
.there:
|
||
|
ret
|
||
|
|
||
|
everywhere:
|
||
|
ret
|
||
|
|
||
|
global everywhere
|
||
|
|
||
|
tjosan:
|
||
|
ret
|