hey.
is there anything like @@/@F/@B in TASM ?
best regards.
is there anything like @@/@F/@B in TASM ?
best regards.
TASM has local (per-function or per-segment) labels.
You define them by prepending "@@".
example:
Both of the jumps will jump to the "@@here" label inside their respective procedure.
Please note that "@@" is also a proper local label.
You define them by prepending "@@".
example:
proc myproc1
.....
.....
@@here:
.....
jmp @@here
endp proc1
proc proc2
.....
.....
@@here:
.....
jmp @@here
endp proc2
Both of the jumps will jump to the "@@here" label inside their respective procedure.
Please note that "@@" is also a proper local label.
@ti_mo_n:
Anonymous Labels
When you code jumps in assembly language, you must invent many label names. One alternative to continually thinking up new label names is to use anonymous labels, which you can use anywhere in your program. But because anonymous labels do not provide meaningful names, they are best used for jumping over only a few lines of code. You should mark major divisions of a program with actual named labels.
Use two at signs (@@) followed by a colon (:) as an anonymous label. To jump to the nearest preceding anonymous label, use @B (back) in the jump instruction?s operand field; to jump to the nearest following anonymous label, use @F (forward) in the operand field.
The jump in the following example targets an anonymous label:
The items @B and @F always refer to the nearest occurrences of @@:, so there is never any conflict between different anonymous labels.
Source: MASM Programmer?s Guide
Anonymous Labels
When you code jumps in assembly language, you must invent many label names. One alternative to continually thinking up new label names is to use anonymous labels, which you can use anywhere in your program. But because anonymous labels do not provide meaningful names, they are best used for jumping over only a few lines of code. You should mark major divisions of a program with actual named labels.
Use two at signs (@@) followed by a colon (:) as an anonymous label. To jump to the nearest preceding anonymous label, use @B (back) in the jump instruction?s operand field; to jump to the nearest following anonymous label, use @F (forward) in the operand field.
The jump in the following example targets an anonymous label:
jge @F
.
.
.
@@:
The items @B and @F always refer to the nearest occurrences of @@:, so there is never any conflict between different anonymous labels.
Source: MASM Programmer?s Guide
huh? o_O I know what an annonymous label is. I said that TASM has 'local labels' (instead of annonymous) which can very well serve the same purpose if used correctly.
well, ti_mo_n, from your answer I see that in TASM there is no anonymous labels coz "jmp @@there" is just local label w/o ability to jump back and jump forward
lzasm is compatible to tasm (ideal mode) and supports @@, @f and @b