Matrix1 Utility Plug-ins

MAKE BANK FROM FILE


Syntax

MAKE BANK FROM FILE Bank Number, Source Filename
MAKE BANK FROM FILE Bank Number, Source Filename, Start Position, Number of bytes

Description

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.

Go back to ...

Matrix1Util_01 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011