[A83] Re: Ideas.
[Prev][Next][Index][Thread]
[A83] Re: Ideas.
At 10:37 2001-11-27, you wrote:
> > I'd also like local labels. The method I used in gbasm, my gameboy
> > assembler, was to have all labels starting with @ be local. Local labels
> > aren't special. They are essentially macros:
>
>Adding extra features is always nice ;-)
Tasm actually has support for local labels. If a label starts with _ it is
local within the "module", wich you define with .module
Like this:
.module main
prog_start:
...
...
_loop:
...
...
call someroutine
...
jp _loop
.module whatever
someroutine:
...
...
_loop:
...
...
djnz _loop
ret
Read tasm.doc page 13.
///Olle
Follow-Ups:
References: