Skip to content

sw-embed/web-sw-cor24-pascal

Repository files navigation

web-sw-cor24-pascal

Browser-based Pascal demo runner for the sw-cor24-pcode p-code VM running on the COR24 emulator via WASM.

Live Demo

Part of the Software Wrighter COR24 Tools Project.

Overview

web-sw-cor24-pascal displays Pascal source and pre-compiled p-code assembly side by side. Two modes:

  • Demo mode: Select a pre-compiled demo and click "Link & Run" to link, assemble, and execute instantly.
  • Edit mode: Write or modify Pascal source in an editable text area, then click "Compile & Run" to compile via the sw-cor24-pascal Pascal compiler running inside a COR24 emulator, link with the runtime, assemble, and execute -- all in the browser.

Linking uses pl24r (linker), assembly uses pa24r (assembler), and execution runs on the COR24 emulator via WASM. No server-side compilation.

13 demos including hardware I/O: Button LED (switch-polling to light LED D2), LED On, and algorithmic demos (Fibonacci, Primes, Collatz, Factorial, etc.).

Built with Rust, Yew 0.21, and Trunk. Runs entirely in the browser as a WASM application.

Build

trunk build                    # Build WASM to dist/
./scripts/serve.sh             # Dev server (port 9918)
./scripts/build-pages.sh       # Release build to pages/ for GitHub Pages

Related Projects

Links

Copyright

Copyright (c) 2026 Michael A. Wright

License

MIT License -- see LICENSE for details.

About

Browser-based Pascal demos for COR24

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors