SecondBASIC Documentation v3

Home / Command Reference / VdpRamWrite

VdpRamWrite

Description: Writes <Data> into VRAM at <Address>. Each write is 2 bytes long and single byte writes aren't permitted, so when you're writing the <Data>, you're writing to the even and odd address at the same time.

Syntax:

VdpRamWrite <Address>, <Data>

Part Description
<Address> Required. The VRAM address to write <Data> to. The address must be an even number.
<Data> Required. The data can be an integer, long, or a constant value.

Example:

    VdpRamWrite 0,&h1111