{{htmlmetatags>metatag-robots=()
metatag-title=(BANK COUNT | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for BANK COUNT)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(BANK COUNT | ugBASIC User Manual)
metatag-og:description=(Manual page for BANK COUNT)
}}
====== 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:
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/expansion_bank_01.bas|expansion_bank_01.bas]]''
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/expansion_bank_02.bas|expansion_bank_02.bas]]''
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/expansion_bank_03.bas|expansion_bank_03.bas]]''
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/expansion_bank_04.bas|expansion_bank_04.bas]]''
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/expansion_bank_05.bas|expansion_bank_05.bas]]''
==== ABBREVIATION ====
Bk C%
==== AVAILABLE ON ====
*
* Commodore 64
* Atari (400/800)
* Olivetti Prodest PC128
* Thomson MO5
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON BANK COUNT|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]