>
> --- In oopic@yahoogroups.com, Ian Drennan <ianid@> wrote:
> >
> > m.lisowski wrote:
> > > Can anyone explain how to find a subroutine address for
branching
> > > using SCP? All the old posts are outdated with V6 of the
compiler...
>
>
> > Hope this helps
>
> Unfortunatelly, I couldn't get it to work correctly. Program
execution
> does change but not exactly as I would expect, branching address is
> from your method. I thought that the subroutine will be executed and
> the program will continue to run from the point it was interrupted,
> but it doesn't and the code is to big to trace what actually is
> happening. I will have to stick only to objects.
>
>
> --
> Mike
Why do you expect this to work? The command Y is a branch, not a
call and there is no return addressed pushed onto the return address
stack.
A better way to go is to organize the program as a 'super loop' that
checks the value of various flags. If a flag is set, the subroutine
is called. Then you can just set the flags with SCP. Other code czn
set flags as well. What you wind up with is a finite state machine
with local and remote inputs.
If you put the flag variable first in the declarations, I think its'
address may remain constant through program mods. Maybe not...
Richard
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment