BSZ
Bank Size
This numeric function returns the number of bytes available in the specified memory bank. This number represents total available bank memory and is reduced only by variable space.
Syntax
Section titled “Syntax”BSZ (bank-num [,ERR=line-ref|,ERC=error-code])bank-num- is the integer number of the memory bank. The only valid value is 1.
line-ref- is the program line number or label to branch to if an error is produced by this function.
error-code- is a programmer-defined error code. Valid values are positive or negative whole numbers.
Remarks
Section titled “Remarks”This value is dynamic. It changes as memory allocation changes during processing.
If bank-num is negative, zero, or greater than the number of memory banks configured on this system, an ERR=41 results.
Each task occupies its own memory bank, which is always referred to as memory bank 1 and is the only bank that the task can access. Bank-num values of 2 through 7 do not generate an error, but return a value of zero.
Examples
Section titled “Examples”LET B=BSZ (1)If B=2048, then there are 2048 bytes of available memory in memory bank 1.
See also
Section titled “See also”From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF