Skip to content

PokeByte

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

PokeByte

PokeByte:Void bank:Int32, offset:Int32, value:Int32
Parameter Mode Type Default Description
bank In Int32 required The bank to write to.
offset In Int32 required Position in bytes.
value In Int32 required The value to store.

Description

Writes one byte. Values outside 0 to 255 wrap around, so 300 is stored as 44 and -1 as 255.

Examples

bank = CreateBank(2)
PokeByte bank, 0, 300
PokeByte bank, 1, -1
Print PeekByte(bank, 0)
Print PeekByte(bank, 1)
FreeBank bank
44
255

Related Commands

PeekByte, PokeFloat, PokeInt, PokeShort

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally