
LOAD loads a new BASIC skript into Flash memory of the module. LOAD can be called with zero or one argument. If no argument is given, LOAD reads characters from the currently selected I/O interface and stores them into BASIC's Flash memory area. In this case, if LOAD founds a Stop Sequence (usually three successive pluses), transfer is complete. If an argument is given, it must be the name of an existing file on SD card which contains the source code of a BASIC script.
None or an existing file on disk (SD-Card or USB stick)
ERR_OK (0) on success.
ERR_FR_xx (13...25) if something's gone wrong while accessing the media.
ERR_TOO_MUCH (31) if the the source code is too big.
LOAD hello.bas
Loads the file "hello.bas" into flash memory for execution by the scripting subsystem
Any type of file can loaded by LOAD, LOAD does no validation except for the file size. Actually supported files are BASIC skripts as ASCII text and pre-compiled BASIC programs.