1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-03-12 01:41:40 +00:00
Brendan Robert 2db2129806 Implement additional hardware-accelerated functions using trig identities
Extended hardware acceleration to more functions by using mathematical
identities with the base MegaFlash FPU operations:

New Functions (all hardware-accelerated):
- neg(x) = x * -1 (preserves precision vs sign flip)
- abs(x) = sign check + neg if needed
- log2(x) = ln(x) / ln(2)
- pow2(x) = e^(x * ln(2))
- asin(x) = atan(x / sqrt(1 - x²))
- acos(x) = π/2 - asin(x)
- sinh(x) = (e^x - e^-x) / 2
- cosh(x) = (e^x + e^-x) / 2
- tanh(x) = sinh(x) / cosh(x)
- sec(x) = 1 / cos(x)
- csc(x) = 1 / sin(x)
- cot(x) = 1 / tan(x)

All functions use hardware mul, div, sqrt, sin, cos, tan, atan, ln, and exp
operations from MegaFlash, providing significant speedup over software
implementations.

Updated documentation to reflect extended hardware acceleration coverage.
2026-01-24 17:49:32 -06:00
2025-11-27 17:36:41 -08:00
2025-03-20 17:35:34 -07:00
2022-05-08 21:20:26 -07:00
2025-10-18 18:50:43 -07:00

The PLASMA Environment has evolved: PLEIADES

(PLasma Enhanced InterActive Development EnvironmentS)

Pleiades image credit: NASA, ESA, AURA/Caltech, Palomar Observator

PLASMA has grown from a language compiler to a full featured interactive environment for developing and running applications on a 6502 computer. Currently the Apple // series and the Apple /// are fully supported. With the addition of FORTH and LISP to the PLASMA ecosystem as well as support for assembly programming with EDASM and even a bugfix so AppleSoft can run from the PLEIADES command line, a new designation for the expanded functionality seems in order. PLEIADES incorporates many feature improvements and bug fixes from the previous PLASMA 2.11 release. Here a some of the biggest updates:

  1. Increase evaluation stack size to 32 entries for more complex algorithms
  2. Support longer lines and line continuations in PLASMA compiler
  3. Add 80 column (and greater) video mode to text editor and console I/O
  4. Increase editor max line length to 127 characters
  5. Greatly improve text loading performance of text editor
  6. PLVM, the Portable PLASMA VM, now runs modules with 6502 code
  7. Bug fixes and performance improvements to FORTH and LISP interpreters
  8. Suite of libraries and utilities for Double Hires GRaphics development
  9. Simple command file execution

The combination of all these enhancements make PLEIADES an efficient environment for programming and interacting with a 6502 computer.

Documents:

YouTube Video Series

Disk Images:

Description
Proto Language AsSeMbler for All (formerly Apple)
Readme 2.1 GiB
Languages
Assembly 42.1%
C 36.8%
Shell 8.9%
Makefile 4.4%
Forth 3%
Other 4.8%