Digirule Tiny Basic

Basic Source

Edit Me Looking for an assembler?

Available Commands

let variable = value

Assign a value to a variable

print value

Display a value on the Data LEDs

read variable

Copy the value of the buttons into a variable

label name

Define a label

goto name

Jump to the named label


Halt the program

if expression = expression then goto name

If two expressions are of the same value then jump to a named label

poke value address

Set a piece of memory at address to a value

rem comment

Adds a comment

Available Operators

value + value

Adds two values together

value - value

Subtracts one value from another

peek( address )

Retrieves the value stored at a memory address

shiftleft( value )

Calculates the left shift of a value

shiftright( value )

Calculates the right shift of a value