beautypg.com

Remote Processing CAMBASIC User Manual

Page 126

background image

Comm ands - 93

OUT

I/O Statement

SYNTAX:

OUT I/O addre ss, data

PURPOSE:

Sends a byte to an I/O address.

REMARK S:

The I/O addre ss is any on- or off-card address in the range of 0 to 65,535. data is between 0 and
255.

NOTE: I/O addresses 128 through 141 are used internally by the CPU. Writing to these addresses

may disrupt system functions.

RELATED:

B IT , I N P

EXAMPLE:

In the following example, the number 2 is wr itten to I/O address 100:

OUT 100,2

ERROR:

< Data negative> – for address, data
< Data > 255> - for data
< Data > 65,535> - for address