Table of Contents

ugBASIC User Manual

BANK COUNT ✓

SYNTAX

   = BANK COUNT

PURPOSE

This function returns the number of (expansion) banks available. If the computer has more memory areas than the normally addressable one, this function returns the number of banks. Each bank is a Sharing space with a “window” of memory that starts at BANK ADDRESS (bank) and is BANK SIZE (bank) bytes long.

EXAMPLE

  IF BANK COUNT > 0 THEN
     PRINT "there are banks!"
  ENDIF

See also the following example files:

ABBREVIATION

 Bk C%

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY