From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-7/Help_74.AMOS

Loads part of a sample file into memory.

Sload File_Number,Length To Address

File_Number is the number of a file you've opened previously with the OPEN IN File_Number,"Name" instruction.

Length is the number of bytes to load. If this number is bigger than the actual size of the file, then only the remaining bytes will be loaded.

Address is the destination address.

Your data is loaded from the current file postion, as set by POF.