[A83] Re: Custom program loader


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

[A83] Re: Custom program loader




> Van: Patai Gergely <patai.ti@freemail.hu>
> 
> > Do what you do in an interrupt program:
> > MAke a little piece of loader/copier code, and let it 
> > execut from
> > within another (safe) piece of mem.
> > The saferam1 area seems very fit to me for this purpose 
> (768 bytes...)
> But since we are making something that is incompatible
> with all of the shells other than the TIOS, would not
> it be better to use the bottom of the stack for this
> purpose? (saferam1 is just very temptating to
> be overwritten by the actual program :)

Oh yes, but you don't need to move the program in a way that you need to
move it back afterwards... So the shell doesn't really need to stay in safe
RAM. You could also use some obscure memory areas (like the edit-name
buffer, 2x8 bytes) to put in small lookup routine, that jumps to your
'deloader' after the program has exited.

	Henk Poley <><




Follow-Ups: