A bank is created with CreateBank. It's size is given in bytes. An integer is 4 bytes. A float too.
You can write to the bank with the Poke commands: PokeByte, PokeShort, PokeInt and PokeFloat.
These commands need the bank as a parameter, followed by the writing position (in bytes) and the value that should be written:
You can read from the bank with the Peek commands: PeekByte, PeekShort, PeekInt en PeekFloat:
;create bank that can store 255 integers/floats bank = CreateBank(255 * 4)
You can write to the bank with the Poke commands: PokeByte, PokeShort, PokeInt and PokeFloat.
These commands need the bank as a parameter, followed by the writing position (in bytes) and the value that should be written:
;write first integer to bank at position (0 * 4) PokeInt bank, 0, 10 ;write second integer to bank at position (1 * 4) PokeInt bank, 4, 226 ;write second integer to bank at position (2 * 4) PokeInt bank, 8, 192
You can read from the bank with the Peek commands: PeekByte, PeekShort, PeekInt en PeekFloat:
Print PeekInt(bank, 0) Print PeekInt(bank, 4) Print PeekInt(bank, 8)