Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
print [2019/05/07 22:36]
neils
print [2019/12/11 23:39] (current)
neils [Suppressing the line feed]
Line 3: Line 3:
 Syntax: Syntax:
  
-  print <any expression or string> [, <any exrpession or string>, ...]+  print <any expression or string> [, <any exrpession or string>, ...] [;]
   ​   ​
 The ''​PRINT''​ command prints strings or numbers (values of any expression) on the screen using the KERNAL CHAROUT routine. Any number of arguments are accepted. The arguments must be separated with a comma ('',''​). A RETURN character ($0D) will be printed after the last printed value. The ''​PRINT''​ command prints strings or numbers (values of any expression) on the screen using the KERNAL CHAROUT routine. Any number of arguments are accepted. The arguments must be separated with a comma ('',''​). A RETURN character ($0D) will be printed after the last printed value.
Line 14: Line 14:
   
 ASCII strings will be converted to PETSCII in compile-time. ASCII strings will be converted to PETSCII in compile-time.
 +
 +===== Suppressing the line feed =====
 +
 +Just like in CBM BASIC, the '';''​ (semicolon) operator at the end of the statement will prevent printing a newline after the last printed expression. (In version 2.2 and up)