Re: A86:New in town


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

Re: A86:New in town




Perhaps replace them with RETURN tokens instead of something that
generates errors?  That way you don't need a handler and it quits on its
own...

David Phillips wrote:
> 
> The problem is with the stack.  'stop' is sort of like _jforcecmdnochar in
> assembly, or how you would do it by hand.  Nuke the stack and exit.  But
> since you are calling it from an assembly program, and they didn't store the
> correct info in ram to return to the assembly program, it screws up.
> 
> Hmm...it just might be possible to go through and replace the token for
> 'stop' with something that would cause an error.  And if you installed an
> error handler before you ran the program...
> 
> > What registers does the rom call use?  maybe it cares what is in the other
> > ones too.
> >
> > > You actually can use _exec_basic, as long as the program doesn't have a
> > > 'stop' in it anywhere...


References: