Welcome, Guest. Please login or register.


Author Topic: BASIC as a script language? (Read 4086 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
BASIC as a script language?
« 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.

 

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: BASIC as a script language?
« Reply #1 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.


Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14775
  • Country: hu
    • http://enterprise.iko.hu/
Re: BASIC as a script language?
« Reply #2 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.

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: BASIC as a script language?
« Reply #3 on: 2016.October.07. 10:21:42 »
Yes, I have been peeking at the code. It is a very clever approach.