-
-
Notifications
You must be signed in to change notification settings - Fork 489
Bankswitching
Bankswitching is the ability to increase memory capacity. (However, not the accessible memory, see RAM).
In the case of TIC-80, it has 8 accessible memory banks and can individually bankswitch each of the different areas of RAM:
- tiles
- sprites
- map
- sfx
- music
- palette
- flags
- screen
Note that the code size increases without need to switch banks in the code editor.
To switch banks in code, see sync.
This is a feature of the PRO version.
You can edit contents of different banks by pressing the "Switch bank" button on the top bar of the TIC-80 pro editor and then choosing bank 0-7.
On the right side of bank numbers, there's a pin button. When the pin button is pressed (red), switching the bank will set all the editors (sprites, map, etc) to the chosen bank. When it's not pressed (gray), only the bank of the currently viewed editor will change. This will allow for e.g. editing multiple map banks with the tiles of just one sprite sheet bank.
Useful tip:
sync
is also accessible for users who do not have the PRO version of TIC-80, so it is possible to save and edit these memory banks by switching between bank 0 and banks 1 to 7 with toCart parameter set to true.
TIC-80 tiny computer https://tic80.com | Twitter | Telegram | Terms
Built-in Editors
Console
Platform
RAM & VRAM | Display | Palette | Bits per Pixel (BPP) |
.tic
Format | Supported Languages
Other
Tutorials | Code Snippets | Libraries | External Tools | FFT
API
- BDR (0.90)
- BOOT (1.0)
- MENU
- OVR (deprecated)
- SCN (deprecated)
- TIC
- btn & btnp
- circ & circb
- clip
- cls
- elli & ellib (0.90)
- exit
- fget & fset (0.80)
- font
- key & keyp
- line
- map
- memcpy & memset
- mget & mset
- mouse
- music
- peek, peek4
- peek1, peek2 (1.0)
- pix
- pmem
- poke, poke4
- poke1, poke2 (1.0)
- rect & rectb
- reset
- sfx
- spr
- sync
- ttri (1.0)
- time
- trace
- tri & trib (0.90)
- tstamp (0.80)
- vbank (1.0)