LOAD

Description

The LOAD command transfers data from internal non-volatile memory into a target variable. This differs from the standard BASIC LOAD command which loads programs into memory. This Scripting Language's LOAD command behaves similar to the GET command, except that the source is always internal NVRAM.LOAD needs two arguments. The first one is the zero-based memory address. The second one is the variable that should receive the data.

The total available NVRAM space that a program can use is 4096 bytes. Adresses above 4095 will wrap around to x mod 4096.

These types of variables can be filled by LOAD:

  • - Single 32 bit signed integer variables
  • - Entire byte and integer arrays
  • - Single array elements of byte and integer arrays
  • - String variables
  • Example

    This example first stores a string at address 2000, then reads that string into another string variable and print sboth strings.

    outmode -2 
    let a$ = "hello"
    save 2000, a$
    load 2000, b$
    print a$ print b$

    Remarks

    The total available NVRAM space that a program can use is 4096 bytes. Adresses above 4095 will wrap around to x mod 4096.

     

    See also: SAVE (Mehr more) command.