User Tools

Site Tools


ugbasic:user:kw:bank_count
Translations of this page:


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

  • Commodore 64
  • Atari (400/800)
  • Olivetti Prodest PC128

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