1. Home
  2. /
  3. Tinybasic
  4. /
  5. Button Press Counter

Button Press Counter - Tinybasic Typing CST Test

Loading…

Button Press Counter — Tinybasic Code

Counts button presses and updates the display.

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

1000 REM UpdateUI
PRINT "Button Count: "; count
RETURN

2000 REM ButtonPress
count = count + 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 Theme ToggleTinyBasic Score TrackerTinyBasic Simple TimerTinyBasic Health TrackerTinyBasic Level TrackerTinyBasic Coin CounterTinyBasic Ammo TrackerTinyBasic Star CollectorTinyBasic Power-Up Timer

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher