Running a program with BASIC64

Basic64 - In Archive-on-Line Steve Ellacot asked about running a program under BASIC64 in RO4, but in any version of RISC OS, to get a program to run under BASIC64, all you need to do is to wrap it up in a mini application and write the Run file so that it calls BASIC64 first. If your program is called, say, YourProg, the Run file should look something like this:

| !Run file for YourProg
| version 1.0    21.1.97
|
Set YourProg$Dir <Obey$Dir>
IconSprites <YourProg$Dir>.!Sprites
RMEnsure BASIC64 1.05 RMLoad System:Modules.BASIC64
RMEnsure BASIC64 1.05 Error YourProg needs BASIC64 version 1.05 or later
BASIC64 -quit <YourProg$Dir>.YourProg_RunImage_file

The last line calls your program and ensures that, when you exit from it, the computer reverts to the standard Basic.


Source: Archive Magazine 13.4 - "Hints and Tips"
Publication: Archive Magazine
Contributor: Rex Palmer