This directory contains BASIC programs for BasiCoCo.
- guess_number.bas - Number guessing game (GOSUB, INPUT, IF/ELSE, LEFT$, RND)
- math_quiz.bas - Math quiz game (WHILE/WEND, EXIT FOR, ABS, SGN, RANDOMIZE, RND)
- lunar_lander.bas - Classic lunar lander game
- simple_lunar.bas - Simplified lunar lander
- string_lab.bas - String laboratory: Caesar cipher, word counter, base converter (MID$, ASC, CHR$, INSTR, VAL, STR$, SQR, RESTORE, ON...GOSUB)
- sorting_demo.bas - Bubble sort with subroutines (GOSUB/RETURN, DATA/READ, DIM, DO/LOOP, STRING$, ON...GOTO)
- bar_chart.bas - Bar chart visualization (DIM, INPUT, LEN, LEFT$, WHILE/WEND)
- math_plotter.bas - Math function plotter: sine, cosine, exp, sqrt, Lissajous, turtle star (SIN, COS, ATN, EXP, LOG, PMODE, SCREEN, LINE, DRAW, PAINT)
- address_book.bas - Contact manager with save/load (OPEN, CLOSE, PRINT#, INPUT#, LINE INPUT, EOF, ON ERROR GOTO)
- graph_chart.bas - Graphical bar chart from file data (OPEN, INPUT#, PRINT#, PMODE, LINE, PAINT, PSET, ON ERROR GOTO)
- bounce_pause.bas - Bouncing animation with PAUSE command
- blue_circle.bas - Graphics circle demo
- qix_beam.bas - QIX-style beam animation
- spiral.bas - Spiral graphics pattern
- rubiks_cube.bas - 3D Rubik's cube in isometric projection (LINE, PSET, PMODE)
Use the LOAD command in the CLI or web interface:
LOAD "lunar_lander" # Loads lunar_lander.bas (auto-adds .bas extension)
LOAD "lunar_lander.bas" # Explicit filename
LIST # View the loaded program
RUN # Execute the programThe LOAD command searches for programs in this order:
- Current working directory
programs/subdirectory- Project root directory
- Project root
programs/directory
- Create a new
.basfile in this directory - Use line numbers (10, 20, 30, etc.)
- Save and load with the
LOADcommand
Or use the SAVE command from the emulator:
10 PRINT "HELLO, WORLD!"
20 END
SAVE "myprogram"See the main project README for a complete list of implemented BASIC commands and functions.