Re: A86: detecting running program


[Prev][Next][Index][Thread]

Re: A86: detecting running program




Cassady Roop wrote:

> that didn't work either.
>
> Cassady Roop
>
> Joshua J Seagoe wrote:
> >
> > try [_ops]==[_opbase], not [_ops]==_opbase.
> > both should be $3fff if there's nothing on the op stack
> > ie:
> >  ld hl,[_ops]
> >  ld de,[_opbase]
> >  or a
> >  sbc hl,de
> >  jr z,op_stack_empty
> >
> > -josh
> >
> > On Thu, 11 Nov 1999 20:03:46 -0800 Cassady Roop <croop@oregontrail.net>
> > writes:
> > >
> > >It didn't work.  Even at the homescreen, _ops did not contain
> > >_opbase.
> > >
> > >Rats.
> > >
> > >Cassady Roop
> > >
> > >Joshua J Seagoe wrote:
> > >>
> > >> there may not be such a flag.  maybe you could check the position
> > >of
> > >> _ops.  if it's at _opbase (i think), there definitely aren't any
> > >programs
> > >> running.  running either an asm or basic program will push something
> > >onto
> > >> the op stack.
> > >>
> > >> -josh
> > >>
> > ___________________________________________________________________
> > Get the Internet just the way you want it.
> > Free software, free e-mail, and free Internet access for a month!
> > Try Juno Web: http://dl.www.juno.com/dynoget/tagj.

If you want to make it really complicated, just check the stack for any
values in _asm_exec_ram :o)

Later,
Chicane



Follow-Ups: References: