This command can be used to create a memory-based bank of the required size, and load the contents of the file into the bank.
In the first form of this command, the whole file will be loaded into the bank. The size of the bank will be the same as the size of the file.
In the second form of this command, the selected portion of the file will be loaded into the bank. The size of the bank will be the same as the number of bytes loaded. If you specify a position and size that causes the copy to go past the end of the file, a runtime error will be triggered.
In both cases, the file must exist or an error will be triggered.
If the file being loaded was attached to the EXE during compilation, the file will be loaded correctly. |