Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual

Page 105

Advertising
background image

RPBASIC-52 PROGRAMMING GUIDE

2-86

POKE$

Syntax:

POKE$ segment,address,string
Where: segment = 0 to 7, specifies the 64K segment

address = 0 to 65535, location in segment to save to
string = string variable to save

Function:

Save string variable to RAM memory.

Mode:

Comm and,Run

Use:

POKE$ 1,30000,$(1)

Cards:

All

D E S C R IP T I ON

POK E$ is u sed to s ave lite ral string s in RA M m emo ry. Strin gs of an y leng th can be sav ed.
When poking several strings, memory should be divided into "blocks" equal to the length specified in the
STRING statement plus 1. POKE $ does not check to see if it is writing over other variable information.

WARNING:

RPBAS IC-52 does not check the address. It is possible to poke into the program, stack, or
variable areas. Results are unpredictable. Poke into mem ory above MT OP for safest
operation.

Refer to the POKEB statement for segment and address information.

POK E$ requires a string variable in order to w ork. If string is in quotes, a data error is returned.

RELATED

P E E K $

ERRORS

B A D S Y N T A X

If $, segment, ad dress, or data is missing.

BAD DATA

If segment is > 7, address > 655 35 or ne gative , string not valid.

Advertising