"*" = Value, Variable "[]" = Optional Parameters "?" = Formulaic Parameters (ie: A < B) : End a statement on same line of code Commands: CLEAR CLEAR &H**** Specify the most significant memory address. NEW NEW Erase current program. LIST LIST [[*][- [*]] Displays current program. RUN RUN [*] Run program. CONT CONT Reopen program. LOAD LOAD ["filename"] Load a program from the cassette tape. SAVE SAVE ["filename"] Write a program to the cassette tape. LOAD? LOAD? ["filename"] Collate saved program. General Statements: (substitution) *=* Substitute expression on right to variable on left. PRINT PRINT [*][;. [*].....] Display characters, operational results. INPUT INPUT ["*"][;. [*][,*]..] Get characters or numeric data from keyboard. LINPUT LINPUT ["*"][;. [*]] Get a character from the keyboard. CLEAR CLEAR Arrays and variables are cleared. DIM DIM *(*[,*]) [,*(*[,*])] Declare an array. GOTO GOTO * Jump to specified row. GOSUB GOSUB * Run specified subroutine. RETURN RETURN [*] Return from subroutine. IF~THEN IF ? THEN * Branching. IFS AND FOR~TO~STEP FOR *=* TO * [STEP*] Looping. NEXT NEXT End marker for for loop. ON~ ON ? GOTO/GOSUB/RETURN/RESTORE/ETC *[,*,*..] Based on value of expression, it jumps to specified column (switch statement) STOP STOP Halt program. END END End declaration of RUN. SWAP SWAP *,* Exchange value of two variables. REM REM [comment] Comment. READ READ *[,*,*,*.....] Put data into specified variables. DATA DATA *[,*,*,*.....] Configure data for READ loading. RESTORE RESTORE [*] Specified READ loading DATA statement. POKE &H****,*[,*,*.....] Write 1 byte of data in memory. Graphics Control: LOCATE LOCATE *,* Specify cursor position. COLOR COLOR *,*,* Set BG color. CGEN CGEN * Do allocation of characters on BG and sprites. CLS CLS Clear screen. CGSET CGSET [*][,*] Allocation of pallete on BG and sprites. PALET PALET [B/S]*,*,*,*,* Set color code in color scheme to specified color code. Sprite Control Statements: DEF SPRITE DEF SPRITE *,(*,*,*,*,*)=* Define characters displayed in a sprite. SPRITE SPRITE *[,*,*] Display and erase a sprite. SPRITE ON SPRITE ON Display of a sprite is made possible. SPRITE OFF SPRITE OFF Halt display of a sprite. Movement Commands: DEF MOVE DEF MOVE (*) = SPRITE(*,*,*,*,*,*) Define animation of sprite. MOVE MOVE *[,*,*,*,*,*,*,*] Start movement. CUT CUT *[,*,*,*,*,*,*,*] Animation from MOVE command stops. ERA ERA *[,*,*,*,*,*,*,*] Erase defined movement. POSITION POSITION *,*,* Configure coordinates before MOVE. XPOS XPOS(*) Calculate current X position from DEFMOVE. YPOS YPOS(*) Calculate current Y position from DEFMOVE. MOVE (n) MOVE(*) Finish animation. Special Statements: KEY KEY *,* Character string is defined to a function key. KEYLIST KEYLIST Display state of function keys. PAUSE PAUSE [*] Pause execution. SYSTEM SYSTEM Go back to the Family Basic menu. VIEW VIEW Display the BG graphics. Sound Statements: BEEP BEEP Beep. PLAY PLAY "*" Play music. Numerical Functions: ABS ABS(*) Get absolute value. SGN SGN(*) Get code of numerical formula. RND RND(*) Get a random number. Character Functions: ASC ASC(*) Get numerical code for a character. CHR$ CHR$(*) Convert numerical value to character code. VAL VAL(*) Convert a character string to numerical value. STR$ STR$(*) Convert numerical value to string. HEX$ HEX$(*) Generate a string of hex representation of number. LEFT$ LEFT$(*,*) Left of a string. RIGHT$ RIGHT$(*,*) Right of a string. MID$ MID$(*,*,*) Substring. LEN LEN(*) Length of a string. Special Functions: PEEK PEEK &H**** Fetch memory from address. POS POS(*) Get horizontal position of cursor. FRE FRE Display size of free user memory. STICK STICK(*) Get value of d-pad of controller. STRIG STRIG(*) Get value of button of controller. CSRLIN CSRLIN Get vertical position of cursor. SCR$ SCR$(*,*,*) Calculate picture of BG and picture. Input/Output Functions: INKEY$ INKEY$ [(*)] One character compared to the keyboard is given.