Hasty Briefsbeta

Bilingual

The Mouse Programming Language on CP/M

8 hours ago
  • #Mouse programming language
  • #Stack-oriented language
  • #CP/M microcomputers
  • Mouse is an interpreted, stack-oriented language designed by Peter Grogono in 1975 for microcomputers.
  • It is similar to Forth but simpler, focusing on single-character instructions and variable usage rather than extensive stack manipulation.
  • Mouse supports high-level language features like arrays, functions, procedures, nested control structures, local variables, recursion, and parameter passing.
  • A 'Hello, World!' example demonstrates its syntax, using loops, variables, and string output with exclamation marks for newlines.
  • Instructions are mostly single characters, covering arithmetic, input/output, variable handling, comparisons, conditional blocks, loops, and macros.
  • Macros allow subroutine creation and can be recursive, with parameters accessed via the '%' character and termination with '@'.
  • Variables map to memory locations: uppercase letters are global, lowercase are local within macros, supporting data storage and retrieval.
  • The language was implemented for CP/M, with a small footprint (2k on Walnut Creek CD), and includes tools like file listing and help programs.