'CATALOG' (case sensitive) under DOS 3.3 will show a listing of all files. Attempts program recovery at the point where an error occurred, but was caught with an ONERR GOTO. Once out of movement mode, the right arrow can be used to "type" whatever character the cursor is on. If num is greater than the length of the input string, the entire string is returned. A '?SYNTAX ERROR' is a sign of DOS 3.3. A random access file has record of a certain length in bytes. Attempts to store an array to the cassette port, if available. The command 'NEW' clears out any Applesoft program in memory and clears the contents of all variables; it is not easily undoable. If an array is referenced before being DIM'd, Applesoft assigns the array a size of 11 (0-10), and it cannot be redimensioned. There is no else clause in the language, but it is easy to get around that. Strings similarly take up as much room as necessary and no wordwrapping is done. Clears any Applesoft program and all variables from memory. The FOR...NEXT loop is a form of flow control that places focus on a single counter. If followed by one line number, it lists just that line. Sets future output from PRINT statements to appear in normal video (foreground on background color). The specification of the variable is optional-- if omitted, Applesoft will use the innermost active loop to deal with. All continuing characters ([A-Z0-9]) past the first two are ignored-- NA is the same as NAME. [Sorry, HTML does not really have Mousetext, so you're going to have to determine what they look like for yourself.] Accepts input from the specified slot, 0..7. The 'PDL(n)' command reads a single axis. Converts a numeric value to a string, using the same formatting as used by PRINT. GET only waits for one character, and returns immediately on getting that without printing it to the screen. Several to all of ProDOS's BASIC.SYSTEM versions went into TRACE mode if your code had a 'THEN FLASH' evaluated. The 'LET' is totally optional, and is usually omitted as being redundant. Computes the cosine of ang, with ang measured in radians. Unlike C, DIM A(10) gives you eleven places: A(0), A(1), A(2)... A(10). 'PRINT CHR$(4)"READ filename"' and 'PRINT CHR$(4)"WRITE filename"' do the appropriate action. NEXT i Applesoft BASIC FOR I = 10 TO 0 STEP -1 : PRINT I : NEXT I BaCon ' Downward for FOR i = 10 DOWNTO 0 : PRINT i : NEXT Commodore BASIC 10 FOR I = 10 TO 0 STEP -1 20 PRINT I 30 NEXT IS-BASIC 100 FOR I=10 TO 0 STEP-1 110 PRINT I 120 NEXT Batch File @ echo off for /l %% D in (10,-1,0) do echo %% D BBC BASIC FOR i% = 10 TO 0 STEP -1 Thus, 'A=B=C' sets A to 1 (true) if B is equal to C, 0 otherwise. [If you omit the filename on a machine with cassette ports (][, ][+ and //e), it will attempt to read/write from the cassette ports in back, and seem to hang if a system is not connected] Once saved to disk, you can access the program later; 'RUN filename' can be used to both LOAD and RUN a saved Applesoft program. [The 'POKE 51,0' tricks Applesoft into thinking a program is running; INPUTs and other deferred mode only commands won't work from the prompt without that. This clears all of the 40x40 field to black, and puts the current prompt line in the space at the bottom. [This section is not quite yet written. Microsoft created Applesoft long before it became famous for Windows. If x<0, the random number generator is seeded based on x; subsequent calls with x>0 will return the same sequence. Stores byte (0..255) into the specified memory address. No parentheses are needed around the x clause, but they don't really hurt. The two define the top and bottom of the memory pool Applesoft uses for variable storage. 'BRUN filename[,Astart]' loads a binary file and starts executing it. Thus, you cannot open the file in a word processor and expect it to work. Conventions and the like used by this FAQ: Section 3: Input/Output to Text and Graphics screens, Mousetext and special 80-column text output. You'll need a machine language addon package to use this mode; several existed, such as Beagle Bros' Beagle Graphics. filled with spaces), and the third only if columns 24-32 are empty. [Htab uses 1-80 to set the column; the POKE uses 0-79]. If the two are identical, then it keeps looping, else it exits. Applesoft BASIC Quick Reference. PRINT (can be abbreviated as '?' No print formatting for other forms is built in; you'll have to write your own if this is needed. Copyright (c) 1998-2007 by Tony Diaz (email: tdiaz-a(in_a_circle)-apple2-dotsero-org), all rights reserved. get creative :) 0 comments. Most Applesoft statements can be typed at the ']' prompt, and they will be executed immediately. Turns on the second hires screen, and clears it to black. The basic syntax is simple - a variable is given a starting value and ending value, and it increments on each pass of the loop: FOR i = 1 TO 10 NEXT A more advanced loop includes the STEP parameter, which specified the value at which a variable is incremented. 'HCOLOR=n' sets the color for drawing. The second tab stop exists only if column 16 for that line is empty (i.e. nothing between the commas), leading to a zero (if read as numeric) or a null string. 'HGR2' turns on the second hires screen, and clears it to black. PDL() returns a value between 0 and 255; the 'center' is approximately 127. Using a line number followed by a comma or a hyphen lists all lines starting at that point. Enhanced //es with 80 column cards, //cs, IIc+s, and IIGSs have the ability to display a special set of characters onscreen, useful for text menuing/windowing, and the like. 'TEXT' will get you out of Lores or hires graphics mode (with a lot of ugly garbage where your lores screen was; you may want to do a 'HOME' to clear the screen after switching out. This is very handy for fixing part of a line, inserting or deleting sections. If a PRINT exists by itself, it will print a 'carriage return' and go to the left edge of the next screen row, scrolling if necessary. A 0 in an even numbered column and a 1 immediately to its right (assuming that 1 is not part of a white chunk) is green or orange. Valid colors are 0 (Black), 1 (Magenta), 2 (Dark Blue), 3 (Violet), 4 (Dark Green), 5 (Dark Gray), 6 (Medium Blue), 7 (Light Blue), 8 (Brown), 9 (Orange), 10 (Light Gray), 11 (Pink), 12 (Bright Green), 13 (Yellow), 14 (Aqua) and 15 (White).