Search found 6 matches

by 木漏れ日
Fri Apr 29, 2016 9:26 pm
Forum: Coding Questions
Topic: Global Labes?
Replies: 8
Views: 3263

Re: Global Labes?

Thank you for your explanation :idea:
Now i understand why it wasnt working before :D
by 木漏れ日
Fri Apr 29, 2016 8:20 pm
Forum: Coding Questions
Topic: Global Labes?
Replies: 8
Views: 3263

Re: Global Labes?


Your problem is just you are trying to access PB labels (local to procedures) through PB commands, and obviously you can't do it since they are local.
I actually like the solution above more than the one using the two global vars also because you don't need to execute the procedure...
thank you ...
by 木漏れ日
Fri Apr 29, 2016 4:56 pm
Forum: Coding Questions
Topic: Global Labes?
Replies: 8
Views: 3263

Re: Global Labes?

...

Global *T1, *T2


Procedure toki()
Code_Start:
!mov rax,98764
!mov ecx,eax
Code_End:
!testl:

*T1 = ?Code_Start
*T2 = ?Code_End

Debug *T1
Debug *T2

EndProcedure

...[/quote]

Thanks for the help :)
ill probably end up using something like this or signatures.
Unless there are ...
by 木漏れ日
Thu Apr 28, 2016 6:21 pm
Forum: Coding Questions
Topic: Global Labes?
Replies: 8
Views: 3263

Global Labes?

This is really great: (PB 4.51)
Procedure toki()
Code_Start:
!mov rax,98764
!mov ecx,eax
Code_End:
!testl:
EndProcedure

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EXAMPLE 1

try.i
!mov rcx,testl;<-------WORKS
!mov [v_try],rcx
Debug try

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EXAMPLE 2

Text ...