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

Page 138

Advertising
background image

RPBASIC-52 PROGRAMMING GUIDE

2-119

XBY

Syntax:

X B Y (addr)
X B Y (addr)=expr
Where: addr = 0 to 65535 (0FFFFH ) is a memory address

expr = 0 to 255 is data to save

Function:

Read/write external data memory, segment 0 only.

Mode:

Comm and, run

Use:

XBY(99)=35

Cards:

All

D E S C R I PT I O N

XBY retrieves or assigns a value to external data memory. This command is equivalent to PEEKB and
P O K E B .

RELATED

CBY, DBY, PEEKB, POKEB

E R R O R

B A D A R G U M E N T Invalid addr o r at t em p t to a s si g n a n o ut o f r a ng e v al u e t o a X B Y (expr).

EXAMPLE

100 XBY(47536) = XBY(47536) .OR. 3

Advertising