Enterprise Forever

:UK => Programming => Topic started by: gflorez on 2016.October.06. 01:17:17

Title: BASIC as a script language?
Post by: gflorez on 2016.October.06. 01:17:17
I am curious about how can EPDOS load a Basic program and run it.

If that could be replicated I would like to have a Zipped Basic program as a menu on Start-up instead of Exdos.ini.

 
Title: Re: BASIC as a script language?
Post by: gflorez on 2016.October.07. 10:04:42
The easiest way is to have the EPDOS.rom installed. Then, on the  Exdos.ini file only one command: :START STARTUP.BAS.

Once on the Basic program, we can put a menu to conditionally jump to the selected application with the EXT command.

When re-entering, some check must be done to not load again a new instance of an extension already loaded, for example EGI.rel or Mouse.xr.

Title: Re: BASIC as a script language?
Post by: Zozosoft on 2016.October.07. 10:12:52
I am curious about how can EPDOS load a Basic program and run it.
It is extracted the start of BASIC ROM, simulate the BASIC startup (using direct CALLs to the BASIC ROM) then jump to the load command in the BASIC ROM.
Title: Re: BASIC as a script language?
Post by: gflorez on 2016.October.07. 10:21:42
Yes, I have been peeking at the code. It is a very clever approach.