hey.

is there anything like @@/@F/@B in TASM ?

best regards.
Posted on 2007-01-18 14:00:59 by WiteG
TASM has local (per-function or per-segment) labels.

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.
Posted on 2007-01-18 14:46:02 by ti_mo_n
@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:

        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
Posted on 2007-01-18 20:33:44 by Jupiter
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.
Posted on 2007-01-18 20:43:16 by ti_mo_n
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
Posted on 2007-01-19 19:27:33 by Jupiter
lzasm is compatible to tasm (ideal mode) and supports @@, @f and @b
Posted on 2007-01-20 06:39:55 by tofu-sensei