An open API service indexing awesome lists of open source software.

https://github.com/zeroflag/warpcore

Tiny Byte Code VM with a self hosted Forth compiler
https://github.com/zeroflag/warpcore

bytecode-interpreter forth minimalist retrocomputing stackmachine virtual-machine vm

Last synced: 10 days ago
JSON representation

Tiny Byte Code VM with a self hosted Forth compiler

Awesome Lists containing this project

README

          

# Warpcore

![{master}](https://github.com/zeroflag/warpcore/actions/workflows/c-cpp.yml/badge.svg)

A compact stack-based virtual machine designed for simplicity.

* Stacks: 16-bit cell size for both data and return stacks.
* Instruction Set: 8-bit opcodes and 16-bit addresses.
* Memory: 32 KB of RAM for programs and runtime data.
* Compiler: Self-hosted Forth compiler running directly on the VM.

## Language

```Forth

: SQUARE DUP * ;

ENTRY

" Hello World!" PRINT
CR

3 SQUARE . CR

BYE
```