PRINT
Action
Send output to the RS-232 port.


Syntax
PRINT var ; " constant"

Remarks

var The variable or constant to print.
You can use a semicolon (;) to print more than one variable at one line.
When you end a line with a semicolon, no linefeed will be added.

The PRINT routine can be used when you have a RS-232 interface on your uP.
See the manual for a design of an RS-232 interface.
The RS-232 interface can be connected to a serial communication port of your computer.
This way you can use a terminal emulator as an output device.
You can also use the build in terminal emulator.

See also
PRINTHEX , INPUT , OPEN , CLOSE

Example


'--------------------------------------------------------------
' (c) 1997,1998 MCS Electronics
'--------------------------------------------------------------
' file: PRINT.BAS
' demo: PRINT, PRINTHEX
'--------------------------------------------------------------

Dim A As Byte , B1 As Byte , C As Integer
A = 1
Print "print variable a " ; A

Print 'new line
Print "Text to print." 'constant to print


B1 = 10
Printhex B1 'print in hexa notation
C = &HA000 'assign value to c%
Printhex C 'print in hex notation
Print C 'print in decimal notation

C = -32000
Print C
Printhex C
Rem Note That Integers Range From -32767 To 32768
End