1. Home
  2. /
  3. Tinybasic
  4. /
  5. Simple Timer

Simple Timer - Tinybasic Typing CST Test

Loading…

Simple Timer — Tinybasic Code

Counts time in seconds and prints elapsed time.

10 LET time = 0
20 GOSUB 1000
30 GOSUB 2000
40 GOSUB 2000
50 END

1000 REM UpdateUI
PRINT "Time: "; time; " sec"
RETURN

2000 REM Tick
time = time + 1
GOSUB 1000
RETURN

Tinybasic Language Guide

Tiny BASIC is a minimalist implementation of the BASIC programming language, designed to run on early microcomputers and extremely resource-constrained systems. It focuses on simplicity, small memory footprint, and easy interpretive execution.

Primary Use Cases

  • ▸Learning programming basics on tiny hardware
  • ▸Hobbyist and retrocomputing projects
  • ▸Embedded systems with very small memory
  • ▸Educational demonstrations of interpreters
  • ▸Prototyping simple logic on microcontrollers

Notable Features

  • ▸Extremely small interpreter footprint
  • ▸Simple BASIC syntax (LET, PRINT, IF, GOTO, GOSUB, FOR/NEXT)
  • ▸Integer-only arithmetic in most implementations
  • ▸Minimal I/O support (console, serial, or GPIO)
  • ▸Fast to load and run on tiny hardware

Origin & Creator

Developed by Dennis Allison in 1975 as a very small, interpretable version of BASIC suitable for 4K or smaller microcomputers.

Industrial Note

Tiny BASIC is mostly of historical, educational, or hobbyist interest today; it's used in microcontroller experiments, retrocomputing, or extremely low-resource environments.

More Tinybasic Typing Exercises

TinyBasic Button Press CounterTinyBasic Theme ToggleTinyBasic Score TrackerTinyBasic Health TrackerTinyBasic Level TrackerTinyBasic Coin CounterTinyBasic Ammo TrackerTinyBasic Star CollectorTinyBasic Power-Up Timer

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher