beautypg.com

Rpbasic-52 programming guide, Uo0 uo1 – Remote Processing BASIC 52 User Manual

Page 135

background image

RPBASIC-52 PROGRAMMING GUIDE

2-116

UO0
UO1

Syntax:

U On
Where: n = 0 or 1, is the serial port number

Function:

Directs PR INT outpu t to COM 0 or COM 1 serial port.

Mode:

Comm and, run

Use:

U O 1

Cards:

All

D E S C R IP T I ON

U O 0 a n d U O 1 c a n b e p la c e d a n y w he r e i n a p r og r am , a ll o w in g R P B A SI C - 52 t o a c c ep t pr i nt t o e i th e r C O M 0
or COM1.

The original BASIC-52 required an assembly language routine to use another serial port. RPBASIC-52 has
done this already.

RELATED

U I 0 , U I 1 , I N P U T

EXAMPLE

The fo llowin g exam ple prin ts out an d inpu ts data from C OM 1.

100 UI 1
110 UO 1
120 INPUT "Enter name:",$(0)
130 UO 0
140 UI 0