[A83] Re: TI-OS resumes
[Prev][Next][Index][Thread]
[A83] Re: TI-OS resumes
>
> > Van: Peter-Martijn Kuipers <hyper@hysoft-automation.com>
> >
> > Wait, wait, what are you referrring to?
>
> Some mails ago somebody thought of a program like:
>
> pop hl
> push hl
> jp _disphl
>
> to display where the TIOS calls your program... But it -indeed- it should
> be "to display where the returns to the TIOS" (I don't know what was
> exactly written down there, so don't pin me on this...)
I checked it out, and the return address is indeed a different address than the
address from which the prog ist started.
However, if you follow the call right before the address you return to, you
can find the calling address
> > > About the pop hl in the beginning of a prgm,
> > > this isn't right. It would be 529Eh (TI-83-).
> > > I was thinking for a while asm programs were
> > > executed like call xxxx, but they use _exec_assembly
> > AFAIK, _exec_assembly just clears out the ram at the progstar location,
> and
> > then calls the program.
> >
> > (well, actually I believe it pushes some return address onto the stack,
> > and then jp's to 9327h, but that's a different story, with the same
> effect to
> > the programmer)
>
> >From what I've found and written down in my romcall reference:
>
> +- _EXEC_ASSEMBLY --+
> + _exec_assembly
> +-------+-------+-------+-------+-------+-------+-------+
> | | 5102 | 5102 | 5102 | 5102 | 5102 | 5102 | 5102
> |
> +-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input: OP1 = 05h, program name (zero terminated, ASCIIZ)
> output: ????
> destroyed: ????
> description: Execute an non-squished assembly program.
> Something like:
> :ABCD12
> :C9
> :End
> :0000
> :End
> NOTE: Only use this ROMcall if you know EXACTLY what you are doing.
> It is very easy to mess thing up (crash/RAM FAIL/etc.)
>
> Another possibility is using EXECUTE_Z80 but that romcall only does a jump
> to $9327...
>
> +- EXECUTE_Z80
> -----+-------+-------+-------+-------+-------+-------+-------+
> | SQUISH.INC | 52E5 | 52E5 | 52E5 | 52E5 | 52E5 | 52E5 | 52E5
> |
> +-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> | JP to: | ???? | ???? | ???? | ???? | ???? | ???? |
> (9327)|
> +-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input:
> output:
> destroyed:
> description: The last romcall in the jumptable (ROM 1.10)
> code:
> LD hl,$9327
> JP (HL)
>
> Hope this helps.
>
> Henk Poley <><
>
>
References: