![]() |
Retro Rocket OS
|
When Retro Rocket is running, you’ll see a place where you can type commands. This is called the prompt.
Think of the prompt like a calculator that understands full programs instead of just sums. You type something in, press Enter, and it runs straight away.
You can type BASIC code directly here and see what it does immediately.
Single line
Multiple lines
Use [ and ]:
Press Enter after ] and it will run.
The square brackets are like telling the computer “here’s a whole block of instructions - run all of this together”.
Think of PRINT like speaking out loud. Whatever you put after it is what the computer “says” back to you.
A variable is like a labelled box. You put a value in the box, and later you can open it and use what’s inside.
Here:
The semicolon is like saying “keep talking”. It lets you mix words and values in one sentence instead of printing them separately.
Whole numbers
Decimal numbers
Text
Think of these like different kinds of items you can put in boxes:
The symbols help you tell them apart:
INPUT is like asking a question and waiting for an answer. Whatever you type gets placed into a variable so the program can use it.
An IF statement is like a fork in the road.
The program looks at a condition:
Counting
A FOR loop is like counting steps out loud: “1, 2, 3, 4, 5”
The computer repeats the same instruction for each number.
Countdown
A WHILE loop is like saying “keep going while this is still true”.
It checks the condition each time, and stops when it no longer holds.
Procedure
A procedure is like writing down a set of instructions you can reuse.
Instead of repeating the same lines over and over, you give them a name and call them when needed.
Function
A function is like a small machine: you put values in, and it gives you a result back.
Here:
Open the editor:
Type:
Press Ctrl+S, save the file as /ramdisk/hello then leave the editor by pressing ESC.
Run it from the prompt:
This example saves to the ramdisk, and will remain there until you reboot your computer.
This combines:
Press CTRL+ESC to stop a running program.
Think of this like pulling the plug if something keeps running longer than you expected.
You’ve got this-keep experimenting!