Archive: Goto, Labels and Variables


Goto, Labels and Variables
Hey :)

I've kind of got a problem again...

I've got function A and function B.
Inside function A, I set a variable. The value of the variable shall represent the name of a label (of function B). Now I go call function B.
Inside B is a Goto command that uses the variable from a to determine the jump.

It's not working. ;)

I've read in the manual that Goto $var the jump will be to an absolute address. That's exactly the thing I can't understand/follow.
Can some give me an explanation and maybe a solution for my problem discribed above?

Thanks :)

CJ


I've solved it.

The lables of function B are now of global type (.label:)
This way I can store the label address in a variable using GetLabelAddress.