Page 1 of 1
Use labels in inline asm code
Posted: Sat Nov 05, 2005 11:25 am
by Trond
Suggestion: Allow code like this:
Since we can do that with variables it would be nice to do it with labels, too. Of course we can use l_ in front of it, but still I'd like to see this.
Posted: Sat Nov 05, 2005 11:53 am
by Dr. Dri
Code: Select all
!JMP l_mylabel
Debug "no jump"
End
mylabel:
Debug "jump"
Dri
Re: Use labels in inline asm code
Posted: Sat Nov 05, 2005 12:28 pm
by Trond
Trond wrote:Of course we can use l_ in front of it, but still I'd like to see this.
Posted: Sat Nov 05, 2005 3:10 pm
by Polo
Some people "sometimes" forget this is a feature request and not a tip request.
Posted: Sat Nov 05, 2005 3:18 pm
by thefool
The good thing from this syntax is, that it allows us to do this:
Code: Select all
a=?label
JMP a
Debug "Im actually not shown!"
label:
Debug "Im the only line in your debugger!"
And yes i have used that

Now we can have both labels and variables with the same name..
And otherwise the compiler would need to check if the given thing is a label or an variable to get the value from!
Posted: Sat Nov 05, 2005 4:55 pm
by El_Choni
I ssuport the request, it's not the same "JMP [address]" to "JMP address".
Posted: Sat Nov 05, 2005 6:54 pm
by Psychophanta
Code: Select all
!JMP eti
Debug "Im actually not shown!"
eti:!eti:
Debug "Im the only line in your debugger!"
Are there too much work to add a '!' ?
Re: Use labels in inline asm code
Posted: Sat Nov 05, 2005 7:22 pm
by Dr. Dri
Trond wrote:Trond wrote:Of course we can use l_ in front of it, but still I'd like to see this.
didn't see that
Dri