-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Retro Rocket is an operating system powered by a custom dialect of BASIC. It supports many things that made old retro systems great, whilst also providing new facilities found on modern systems such as internet and networking, and access to modern hardware.
The Retro Rocket operating system is built of a collection of programs running a dialect of BASIC called Retro Rocket BASIC. This dialect is similar to BBC BASIC. At the top level, once the kernel has mounted the boot file system (usually a CD ROM or a SATA hard drive) it will spawn an instance of /programs/init
which contains the statements needed to get any other file systems mounted, and to start rocketsh
which accepts user input.
rocketsh
allows running of arbitrary BASIC programs, and will search initially under the /programs
directory for programs it can run directly.
All included programs are packaged with the operating system and can be found under the /programs
directory
Programs in Retro Rocket are simialar in strucuture to a BBC BASIC program. Each line is optionally numbered, and each number must be greater than the line number before it. It is possible to have gaps in the numbering.
The program will execute moving from one line to the next, and each line must have at least one statement, and any parameters required for that statement (see the statements section in the sidebar).
Variables may be declared, of the four types listed. For each of these variables, they may remain local to the current program, function, or procedure, or be inherited by other programs ran by the current program.
For an example of programs in the operating system see the /os/programs directory.
(C) Brainbox.cc 2010-2023
- Home
- Builtin Commands
- Included Programs
-
Creating BASIC programs
- Automatic line numbering
- Variable Naming
- Builtin Variables
- Variable Types
- Builtin Variables
- Parameter types
-
Statements
- BACKGROUND
- CALL
- CHAIN
- CHDIR
- CIRCLE
- CLOSE
- CLS
- COLOUR/COLOR
- CONNECT
- CURSOR
- DEF
- DIM
- ELSE
- END
- ENDIF
- EVAL
- FN
- FOR
- GCOL
- GLOBAL
- GOSUB
- GOTO
- IF
- INPUT
- LET
- LIBRARY
- LINE
- LOCAL
- NEXT
- PLOT
- POINT
- POP
- PROC
- PUSH
- RECTANGLE
- REDIM
- REM
- REPEAT
- RETURN
- SETVARI
- SETVARR
- SETVARS
- SPRITELOAD
- SPRITEFREE
- SOCKCLOSE
- SOCKREAD
- SOCKWRITE
- TRIANGLE
- UNTIL
- WRITE
- YIELD
-
Builtin Functions
-
Integer Functions
- ABS
- ASC
- CHR
- CPUID
- CURRENTX
- CURRENTY
- EOF
- EXISTSVARI
- EXISTSVARR
- EXISTSVARS
- GETNAMECOUNT
- GETPROCCOUNT
- GETPROCCPUID
- GETPROCID
- GETPROCPARENT
- GETSIZE
- GETVARI
- HEXVAL
- INSTR
- LCPUID
- LGETLASTCPUID
- LEN
- MEMFREE
- MEMORY
- MEMUSED
- OCTVAL
- OPENIN
- OPENOUT
- OPENUP
- RADIX
- RGB
- RND
- SHL
- SHR
- SOCKCLOSE
- SOCKREAD
- SOCKSTATUS
- TERMHEIGHT
- TERMWIDTH
- VAL
- String Functions
- Real Functions
-
Integer Functions
- System Libraries