I've simplified the code a bit in my previous reply to give an idea.
Actually dp is defined as a static variable in a separate class and its 
value is returned by a dedicated class function.

среда, 4 марта 2020 г., 8:11:30 UTC+1 пользователь Jim Idle написал:
>
> Wow - it has been a long time since that code ;) However, what you ask is 
> possible I believe. It depends on your context. Are writing a pure C 
> program and wish to call in to subroutines etc? 
>
> Probably the best place to start is to generate the C code for a very 
> small jBC program:
>
> lufc.b
> CRT "Leeds United are Magic!"
>
> jbc -S lufc.b
>
> Then you will see the startup sequence for a standard executable and can 
> copy the code. 
>
> However, my memory is vague, but I think that we had a C function you can 
> call to do what you are doing and that will return the dp for reuse. It 
> get's passed to subroutines for instance. 
>
> Perhaps you can post the code you currently have.
>
> Jim
>
> On Wed, Mar 4, 2020 at 3:19 AM Igor Osmolovskiy <[email protected] 
> <javascript:>> wrote:
>
>> Dear all
>>
>> I need the jBase DP (data pointer) to be initialized. I've actually 
>> managed to initialize it by calling the jbase_getdp(). But in both cases 
>> the new child session is created in jshell (and gets removed automatically 
>> after the code has been executed).
>>
>> So I am wondering: is there a possibility to retrieve and use the current 
>> session DP somehow? So that no child session would get created
>>
>> Any advice would be highly appreciated
>>
>> Thanks in advance
>>
>>
>> PS: to the admin, it is actually a jBase related question rather than 
>> TAFC. Thanks
>>
>>
>> Kind regards,
>> Igor
>>
>> -- 
>> -- 
>> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>>  
>> To post, send email to [email protected] <javascript:>
>> To unsubscribe, send email to [email protected] <javascript:>
>> For more options, visit this group at 
>> http://groups.google.com/group/jBASE?hl=en
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "jBASE" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jbase/73153581-25ae-493a-95f6-8afc5cdf7813%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jbase/73153581-25ae-493a-95f6-8afc5cdf7813%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/010e8e45-627a-43a8-b48b-7582562a8116%40googlegroups.com.

Reply via email to