CALL POKES
This page was last modified 10:35, 18 May 2020 by Mars2000you. Based on work by Gdx.

Contents

Effect

Converts single-byte characters of a string to character codes and writes them in several consecutive bytes of the RAM or VRAM.

Syntax

CALL POKES ([@]<Address>,<String>)

Parameters

@ needs to be put before <address> to specify VRAM instead of RAM. Without this parameter, the value will be written to main RAM if the address is lower than 8000h.

<Address> is the address of destination. To avoid error messages, decimal numbers need to be used for addresses higher than FFFFh (65535).

If <Address> is negative the binary complement is used. This means CALL POKES(-1)=CALL POKES(65536-1).

If you specify a RAM address higher than 65534, specifications of the mapped RAM are used.

65535 + (number of available segments) × 16384 is the upper limit. If you specify a value exceeding this value, you get an "Out of memory" error.

<String> is the string of characters that you want to write to the specified address.

Examples

CALL POKES (&HC000,"TEST")
CALL POKES(@&H2000,STRING$(128,CHR$(0)))

Related to

CALL BLOCK, CALL PEEK, CALL PEEKS, CALL PEEKW, CALL POKE, CALL POKEW

Compatibility

DM-System2 BASIC