Next Previous Contents

3.47 cbm_k_load

Function

Load RAM from a Device

Header

cbm.h

Declaration

unsigned int __fastcall__ cbm_k_load(unsigned char flag, unsigned addr);

Description

This function 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. The flag must be set to 0 for a LOAD operation, or 1 for a verify, If the input device is OPENed with a secondary address (SA) of 0 the header information from the device is ignored. In this case, the starting address for the load must be supplied. If the device is addressed with a secondary address of 1, then the data is loaded into memory starting at the location specified by the header. Function returns the address of the highest RAM location loaded. Before this function can be called, the KERNAL SETLFS, and SETNAM routines must be called.

Limits

  • The function is only available as fastcall function, so it may only be used in presence of a prototype.

Availability

cc65

See also

cbm_k_save, cbm_k_setlfs, cbm_k_setnam

Example

None.


Next Previous Contents