Welcome, Guest. Please login or register.


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

Online gflorez

  • EP addict
  • *
  • Posts: 2499
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
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.

 

Online gflorez

  • EP addict
  • *
  • Posts: 2499
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
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

  • EP addict
  • *
  • Posts: 13255
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
    • 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.

Online gflorez

  • EP addict
  • *
  • Posts: 2499
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
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.