<!-- PDF page 293 -->

| Keyword | Meaning |
|---|---|
| **LOAD** filespec [**BANK** m[,o[,n]]\|**CODE** m[,n]\|**DATA** arrayspec\|**LAYER**\|**SCREEN$**] | If filespec is a drivespec: Makes the named drive the current default input device for all subsequent disk operations (COPY, ERASE, MOVE etc.). If the drive letter specified is 'T:', then all subsequent LOADs will default to tape else loads a NextBASIC program into memory. With optional modifier BANK it loads the file as binary data into bank m at optional offset o and optional length n. Optional modifer CODE does the same at address m an optional length n. Optional modifier DATA loads stored data into the array specified by arrayspec. Optional modifier LAYER attemps to load a screen into the current layer while SCREEN$ does the same for Layer 0 screens. See also SAVE, MERGE, VERIFY. If a drive letter is not specified in the filespec, the default drive will be used. |
| **LOCAL** variablelist | Defines a local variable inside a procedure defined with DEFPROC or a subroutine called with GOSUB. One local command accepts up to 256 variable names, and multiple LOCAL commands may be used. |
| **LPRINT** | Like PRINT, but using the printer. |
| **MERGE** filespec | Like LOAD filespec but does not delete old program lines and variables except to make way for new ones with the same line number or name. If a drive letter is not specified, the default drive will be used. |
| **MKDIR** filespec | Create a new directory/folder specified by filespec on the current storage device. If filespec includes a drivespec then that drive will be used |
| **MOVE** filespec1, filespec2 | Renames and/or moves a file defined in filespec1 to filespec2 within the same drive. |
| **MOVE** filespec **TO** attribute | Sets or resets attributes for the file(s) defined by filespec |
| **NEW** | Starts the NextBASIC system afresh, deleting any program and variables, and using the memory up to and including the byte whose address is in the system variable RAMTOP. The system variables UDG, P RAMT, RASP and PIP are preserved. Returns control to the Startup menu, but does not erase files held on drive M: (the RAMdisk). |
| **NEXT** ? | Finds the control variable ?, adds its step to its value and jumps to the looping statement or exits if the limit has been reached. See also FOR. |
| **NEXT** #n,v | Gets the next character of input from stream n and stores it in the variable v. |
| **ON ERROR** [statementlist] | Turns off error trapping or if used with the optional statement list, the statementlist will execute where an error report would normally appear. |
| **OPEN** #n,channelspec | Allows stream number to be attached to the channel identified by channelspec. |
| **OUT** m,n | Outputs byte n at I/O port address m. |
| **OVER** n | Controls overprinting for characters subsequently printed. |
| **PALETTE CLEAR** | Resets all palettes and related settings to defaults. This is also done by NEW. |
| **PALETTE DIM** n | Sets palette type as 8 or 9 bit. |
| **PALETTE FORMAT** n | Enables the EnhancedULA extended palette with n INKs (1,3,7,15,31,63,127 or 255) or disables it (0) |
| **PALETTE OVER** n | Sets the global transparency colour to n (default value is 227). |
| **PAPER** n | Like INK, but controlling the paper (background) colour. |
| **PAUSE** n | Stops computing and displays the display file for n frames. |
| **PLAY** f1[,f2,...f9] | Interpret up to nine command strings and play them simultaneously. |
| **PLOT** x,y | Draws a pixel in the current INK colour (subject to OVER and INVERSE) at the x,y coordinate of the current layer. |
| **POINT** x,y **TO** var | Checks the pixel on the current layer at (x,y) and stores the value in variable var. |
| **POKE** a,valuelist | POKEs the list of values in valuelist to memory map address a. Se also BANK POKE. |
| **DPOKE** addr,valuelist... | Double POKEs the list of values in valuelist to memory map address a. Se also BANK DPOKE. |
| **PRINT** [#n,] [**AT** x,y;] items | Output items to the display or optionally to stream n. Optional AT modifier positions the output at x,y |
| **PRINT POINT** x,y | Set the print position to pixel coordinates x,y. |
| **PROC** name (expressionlist) [**TO** paramlist] | Call procedure defined with DEFPROC. The number of expressions and each of their types must match those defined in the DEFPROC, otherwise a Q Parameter Error report will be generated. TO paramlist will copy return values declared by ENDPROC to up to 8 variables. |
| **PWD** [#n] | Prints the current working directory to the screen, or the specified stream number. |
| **RANDOMIZE** [n] | Sets the system variable (called SEED) used to generate the next value of RND. If optional n =0 or blank SEED is given the value of another system variable (called FRAMES). |
| **READ** v1, v2 ,... vk | Assigns to the variables using successive expressions in the DATA list. |
| **REG n,v** | Sets Next Register n with value v. |
| **REM** ...<br>**;** ... | Remark. No effect. ' . . . ' can be any sequence of characters except ENTER. |
| **REMOUNT** | Reinitialises the filing system, following a change of SD card. |
| **REPEAT**<br>statementlist<br>[**WHILE** y statementlist2]<br>**REPEAT UNTIL** x | Statement or statements in statementlist and statement list2 are repeated until x is true. The loop is terminated skipping statementlist2 if y evaluates to false |
| **RESTORE** [n] | Restores the DATA pointer to the first DATA statement in line optional line n or to the first DATA statement. |

