On Tue, 21 Jun 2022 02:10:13 +0800, David Crayford wrote:
>I think I understand what Charles is doing.
>
>context = copies('00'x,200) <-- state for HLASM program
>wait_time = 30
>
>do forever
> res = console(context, wait_time)
> select
> when res = 'T' then iterate
> when res = 'P' then leave
> otherwise ...
> end
>end
>
Thanks for the pseudocode. I assume that "console()" is the Assembler
code, not shown.
Are you assuming that the address, not merely the content of "context"
will be unchanged between successive calls to "console()"? I find
no guarantee of that.
Of course, "console()" might obtain storage and stash its address in "context".
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN