NMH BASIC
4 months ago
- #RetroComputing
- #Programming
- #BASIC
- NMH BASIC is a small BASIC interpreter written in the early 1990s, notable for its compact size (under 5K bytes).
- Includes a text-mode mine sweeper game using a stackless floodfill algorithm, detailed in the paper 'A Stackless Floodfill Automaton'.
- Other programs in the package include Hangman, Nim game, banner printer, and a prime number sieve (the first program written in NMH BASIC).
- Originally developed in 1994, with versions in BASYL-II, 8086 assembly, and T3X/0 for Unix compatibility.
- Features unique variable naming and array handling, allowing variables like A, A0, and A(0) to refer to the same memory location.
- Limited to 12K bytes of memory, with I/O performed on pre-assigned 'units' without file opening/closing capabilities.
- Strings and lines are limited to 64 bytes, and IF statements conditionally execute the entire rest of the line.
- NMH BASIC II (December 2024) adjusted operator precedence and improved LIST format, reducing size by one byte.
- Version 3.x introduces string comparison operators and baudot-encoded units for five-hole paper tape compatibility.
- Available for download in multiple versions, including a CP/M-compatible version requiring 32K bytes of TPA.