-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
A whishlist item.
Some assembers (such as nasm) support local labels (https://github.com/yasm/yasm/wiki/NasmSyntax#labels). Basically labels that start with a dot are forgotten about any time a label not starting with a dot it read. This allows using nice short labels inside of a function.
; My function
foo:
mov cx, 100
.label:
noop
loop .label
ret
; Other function
bar:
cmp ax, bx
je .label ; Refers to label below.
noop
.label: ; No collision.
retThis is a really convenient feature, sometimes loop is really the best label name.
Metadata
Metadata
Assignees
Labels
No labels