BANK

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: BANK
Abbreviation: B SHIFT+A
Type: Command
Token code: 254/$FE 2/$02
Handling routine
in BASIC ROM:
27593/$6BC9
List of all BASIC keywords


Remark: This article describes the BASIC function BANK in Commodore BASIC V7.0 or higher.

-- Select one of the 16 banks, numbered 0-15

Type: Command
General Programming-Syntax: BANK bank number

This statement specifies the bank number and corresponding memory configuration for the Commodore 128 memory. The default bank is 15. Here is a table of available BANK configurations in the Commodore 128 memory

BANK CONFIGURATION
0 RAM(0) only
1 RAM(1) only
2 RAM(2) only
3 RAM(3) only
4 Internal ROM , RAM(0), I/O
5 Internal ROM , RAM(1), I/O
6 Internal ROM , RAM(2), I/O
7 Internal ROM , RAM(3), I/O
8 External ROM , RAM(0), I/O
9 External ROM , RAM(1), I/O
10 External ROM , RAM(2), I/O
11 External ROM , RAM(3), I/O
12 Kernal and Internal ROM(LOW) , RAM(0), I/O
13 Kernal and External ROM(LOW) , RAM(0), I/O
14 Kernal and BASIC ROM, RAM(0), Character ROM
15 Kernal and BASIC ROM, RAM(0), I/O


To look at a particular bank (in the machine language monitor, for example), type BANK n (n=0-15) and enter the monitor. From within the monitor, the four-digit address is preceded by an additional hexadecimal digit (0-F) to form a five-digit hexadecimal number that indicates the absolute address of a location.

This procedure is described in detail in the Commodore 128 Programmer's Reference Guide.


BASIC V7.0 Commands

ABS | AND | APPEND | ASC | ATN | AUTO | BACKUP | BANK | BEGIN | BEND | BLOAD | BOOT | BOX | BSAVE | BUMP | CATALOG | CHAR | CHR$ | CIRCLE | CLOSE | CLR | CMD | COLLECT | COLLISION | COLOR | CONCAT | CONT | COPY | COS | DATA | DCLEAR | DCLOSE | DEC | DEF FN | DELETE | DIM | DIRECTORY | DLOAD | DO | DOPEN | DRAW | DS | DS$ | DSAVE | DVERIFY | EL | ELSE | END | ENVELOPE | ER | ERR$ | EXIT | EXP | FAST | FETCH | FILTER | FN | FOR | FRE | GET | GET# | GETKEY | GO64 | GOSUB | GOTO | GRAPHIC | GSHAPE | HEADER | HELP | HEX$ | IF | INPUT | INPUT# | INSTR | INT | JOY | KEY | LEFT$ | LEN | LET | LIST | LOAD | LOCATE | LOG | LOOP | MID$ | MONITOR | MOVSPR | NEW | NEXT | NOT | (OFF) | ON | OPEN | OR | PAINT | PEEK | PEN | (PI) | PLAY | POINTER | POKE | POS | POT | PRINT | PRINT USING | PRINT# | PUDEF | (QUIT) | RCLR | RDOT | READ | RECORD | REM | RENAME | RENUMBER | RESTORE | RESUME | RETURN | RGR | RIGHT$ | RND | RREG | RSPCOLOR | RSPPOS | RSPRITE | RUN | RWINDOW | SAVE | SCALE | SCNCLR | SCRATCH | SGN | SIN | SLEEP | SLOW | SOUND | SPC( | SPRCOLOR | SPRDEF | SPRITE | SPRSAV | SQR | SSHAPE | ST | STASH | STEP | STOP | STR$ | SWAP | SYS | TAB( | TAN | TEMPO | THEN | TI | TI$ | TO | TRAP | TROFF | TRON | USR | VAL | VERIFY | VOL | WAIT | WHILE | WINDOW | WIDTH | XOR