User Tools

Site Tools


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


ugBASIC User Manual

BANK ADDRESS ✓

SYNTAX

   = BANK ADDRESS( #bank )
   = BANK ADDRESS( bank )

PURPOSE

The BANK ADDRESS function returns the resident memory address of the shared memory area for the bank, that is the memory area reachable by the CPU and on which it is “mapped” to the main memory.

If you want to copy data from any expanded bank or to the expanded bank, this is the starting address.

EXAMPLE

  POKE BANK ADDRESS( 2 ), 42

See also the following example files:

ABBREVIATION

 Bk A#

AVAILABLE ON

  • Commodore 128 (MOS 8502)
  • Commodore 64
  • 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