Commodore‎ > ‎BASIC‎ > ‎Keywords‎ > ‎

TROFF

Keyword Abbreviation Token (hex) Version(s) Classification
TROFF TRO{Shift+F} D9 3.5, 7.0 Command and Statement
SCRATCH S{Shift+C}  D9  4.x  Command and Statement 

  Syntax  
TROFF
 
  Purpose  
Debugging; disable program tracing.

 
  Remarks  
TROFF turns off program tracing; see TRON for details. 
 
Attempting to supply an argument to TROFF will generate SYNTAX ERROR.
 
The NEW command also turns off tracing, presumably to hide the fact that it changes the secret variable Text Pointer to the first line of the (just deleted) program.
 
Example:
10 IF 1 THEN PRINT "TRUE" : ELSE PRINT "FALSE"
TRON : RUN
[10][10]TRUE          first is for IF, nothing for THEN, second is for PRINT
[10]                  this is for ELSE (acts like REM)
READY.

TROFF : RUN
TRUE

READY.
 
  Compare With  
 
  Contrast With  
 
  See Also  

© H2Obsession, 2014
Comments