LOAD
Function | Address | Vector | Description |
---|---|---|---|
LOAD | FFD5 | 0330 | Load memory from a device |
This routine LOADs data bytes from any input device directly into the memory. It can also be used for a verify operation, comparing data from a device with the data already in memory, while leaving the data stored in RAM unchanged.
To use, you first need to call SETLFS to set the device to save to. Then SETNAM must be called to set the filename.
The accumulator must be set to 0 for a load or 1 for a verify operation.
If the input device is opened with a secondary address of 0, the header information from the device is ignored. In this case the X & Y registers must contain the starting address for the load.
With a secondary address of 1 the data is loaded into memory starting at the location specified by the header.
This routine returns the highest address of the data loaded on exit.