Ammo Tracker - Tinybasic Typing CST Test
Loading…
Ammo Tracker — Tinybasic Code
Tracks ammo usage with shoot and reload actions.
10 LET ammo = 10
20 GOSUB 1000
30 GOSUB 2000
40 GOSUB 2000
50 GOSUB 3000
60 END
1000 REM UpdateUI
PRINT "Ammo: "; ammo
RETURN
2000 REM Shoot
ammo = ammo - 1
GOSUB 1000
RETURN
3000 REM Reload
ammo = 10
GOSUB 1000
RETURNTinybasic 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.