PRINT expression [[,; ]expression] … etc
Outputs text to the screen. Multiple expressions can be used and must be separated by either a:
Comma (,) which will output the tab character
Semicolon (;) which will not output anything (it is just used to separate expressions).
Nothing or a space which will act the same as a semicolon.
A semicolon (;) at the end of the expression list will suppress the automatic output of a carriage return/ newline at the end of a print statement.
When printed, a number is preceded with a space if positive or a minus (-) if negative but is not followed by a space. Integers (whole numbers) are printed without a decimal point while fractions are printed with the decimal point and the significant decimal digits. Large numbers (greater than six digits) are printed in scientific format.
The function FORMAT$() can be used to format numbers. The function TAB() can be used to space to a certain column and the string functions can be used to justify or otherwise format strings.
A single question mark (?) can be used as a shortcut for the PRINT keyword. When listing or saving a program the ? shortcut is listed as the command PRINT.
See also:
BLIT
CIRCLE
CLR$
CLS
COLOR
LINE
LOCATE
MM.HPOS
MM.HRES
MM.VPOS
MM.VRES
MODE
PIXEL
POS
PRESET
PRINT @
PSET
SCANLINE
SPRITE
Leave a Reply