Table of Contents

LOAD

Load file from tape or disk.

Syntax

LOAD <filename>, <device_no> [, <start_address>]

The LOAD command loads a binary file from the given device into memory using the KERNAL load routine.

  • <filename> must be a STRING
  • <device no> must be a number:
    • device number 1: tape
    • device numbers 8-15: disk drives
  • If <start_address> is not specified, the first to bytes (LB/HB) of the file will be used as the start address. Otherwise the first two bytes of the file will be discarded and the rest will be loaded into the memory address specified by <start_address>.

Use the ON ERROR GOTO statement beforehands if you want to trap errors during the loading process.

See also