[A82] Re: ROM-offset
[Prev][Next][Index][Thread]
[A82] Re: ROM-offset
> Van: Henk Poley <HPoley@DDS.nl>
>
> I think I've found a way to lookup the previous running program:
>
> ($8D0E)-9 = last run program (?always?).
Oh, hmm, seems that I've made a little mistake. When your overwrite the
keyhandler to run your code, all BASIC programs are stopped (by the BASIC
'Stop' directive). This will (also) mean that "Enhanced BASIC" this way,
isn't possible...
So things are a bit different. The previous running program can now (still)
be found by looking at ($8D0E), there you will find the name of the last
running BASIC prog written backwards, with at the end a size-byte.
examples (beginning at the adress found at $8D0E):
"OLLEH",5
"HALB",4
"B",1
Previous program names than this one are (sometimes) a bit garbled up and
overwritten with the names of the other running BASIC progs, so you can't
really rely on these.
btw, is ASH the shell where programs could run themselves (or could OS-82
also do this)? And is it really needed to set ($8121) at exit of the
program/shell back to 'HomeScreen'-type? Isn't there a 'ROM-call' that does
right this, I guess the standard error-handler should do this also anyways.
Henk Poley <><
Follow-Ups: