1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

NEW
Clears any Applesoft program and all variables from memory. Not easily
undoable, so be careful what you do.

NEXT [varb1][,varb2...]
Updates a loop started with a FOR. The loop's variable is updated by
the appropriate amount, and if the loop is to continue, program flow
goes back to the top of the loop. The specification of the variable is
optional-- if omitted, Applesoft will use the innermost active loop to
deal with. Multiple loops can be terminated with a single NEXT-- 'NEXT
J,I' is equivalent to 'NEXT J: NEXT I'

NORMAL
Sets future output from PRINT statements to appear in normal video
(foreground on background color).

NOT
Logical negation. 0 becomes 1, anything non-zero becomes zero.

NOTRACE
Stops any program flow tracing set up by TRACE.

ON expr [GOSUB|GOTO] line1[,line2...]
Sets up a GOSUB or GOTO to a series of lines listed depending on the
expression, which must have resulting value 0..255. The program
branches to the first listed line number if the result is 1, the
second if 2, and so on. If the result is 0 or a value higher than the
number of listed lines, program flow goes to the next instruction
after this ON-GOSUB or ON-GOTO.

ONERR GOTO line
Registers a function to GOTO when an error occurs. ONERR GOTO must be
executed before the error happens. When the specified function is
called, PEEK(222) contains the error code. To attempt recovery from
where the problem started, use RESUME.

Due to a bug, if you wish to safely use RESUME to go back to loops,
subroutines, and the like, you should POKE the following values
someplace in memory (they're relocatable, so the address doesn't
matter) and CALL the subroutine before RESUMEing: 104, 168, 104, 166,
223, 154, 72, 152, 72, 96. This cleans up the stack to what it should
be.

OR
Logical oring of two logical expressions, yielding 0 or 1. Applesoft
treats 0 as false and any other number as true on input.

PDL(n)
Returns the value based on the position of the analog device numbered
0 to 3. n=0 for the first paddle or the horizontal axis of a joystick,
n=1 for the second paddle or the vertical axis of a joystick (n=2,3
for the third and fourth paddles or second joystick). PDL() returns a
value between 0 and 255; the 'center' is approximately 127. There
should be a slight pause between calls to PDL to allow the hardware
time to recover from the analog reading and prepare for another. A
quick FOR-NEXT loop does the job nicely: 'XP%=PDL(0): FOR PD=1 TO
10:NEXT: YP%=PDL(1)'

PEEK(addr)
Returns the contents of the memory byte #addr in decimal. addr must be
in the range -32768 to 65535. [Memory addresses less than zero have
65536 added to them to get the real address] A canonical, verified,
trustable table of PEEKs, POKEs and the like has been planned by
Nathan Mates, but is not available yet. Randomly PEEKing around memory