beautypg.com

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

Page 84

background image

RPBASIC-52 PROGRAMMING GUIDE

2-65

NULL

Syntax:

NULL integer
Where: integer = 0 -255

Function:

Sets num ber of NU LL cha racters output to use r after a carriage return

Mode:

Comm and

Use:

NULL 100

Cards:

All

D E S C R IP T I ON

The N ULL com man d cont rols how man y NU LL c harac ters (00 H) are outpu t follow ing a c arriage return.
After a reset, N ULL = 0. B ecau se this is a com man d mo de com man d, it can not be used a s part of a progr am.
The NULL count is stored at external data memory location 15H. Change the value of NULL in a program
using the DB Y(21)= expr instruction, where expr is any value be tween 0 an d 255. No error is returne d if it is
greater than 255.

NULL is generally needed only if you have a slow printer connected to the serial printer port. Note that
NULL affects all serial ports.

Some terminal programs will advance the cursor when a null character is received. This may result in an
strange looking display.

RELATED

L I S T , P R I N T

E R R O R

B A D S Y N T A X When integer is negative.