Re: LF: Exit to Fargo shell, not OS
[Prev][Next][Index][Thread]
Re: LF: Exit to Fargo shell, not OS
Brent Grigg wrote:
>
> If I was to rename a program, such as bd.92p to shell.92p, then when
> shift+on was pressed, bd would run. when bd was done, it would exit out
> to the OS. Is there ANY way for it to instead exit or boot up the fargo
> shell? That way once you name bd as shell, after you run it you can play
> a different game.
There is a command in CORELib, exec().
EXERPT FROM CORELIB.FN:
;-----------------------------------------------------------------
; exec(int handle)
;
; Function: execute Fargo program
;
; Return: D1-D7/A0-A6 destroyed
; success: D0.L = zero
; failure: D0.L = nonzero
;
; Note: Function assumes that {handle} points to a valid Fargo program;
no
; signature checking is done.
;----------------------------------------------------------------
I think you could do what you want with that.
--
Jake Robb
Follow-Ups:
References: