Compare commits

...

3 Commits

Author SHA1 Message Date
277c06b999 Add HEX and DECIMAL to prelude 2026-03-02 16:10:54 +00:00
33047a49e0 Add more information to the README 2026-03-02 16:10:54 +00:00
f9447d22d1 Add favicon 2026-03-02 16:10:54 +00:00
4 changed files with 16 additions and 0 deletions

View File

@@ -1,5 +1,16 @@
# Wipforth
Wipforth is a simple Forth implementation that runs in the WebAssembly
virtual machine. It does I/O via memory-mapped peripherals, which are
emulated in JavaScript.
- For the Forth kernel, see [wipforth.wat](./wipforth.wat)
- For the JavaScript emulator, see [emu.js](./emu.js)
- For the Forth prelude, which is loaded at start-up, see
[prelude.f](./prelude.f)
- For a description of the peripherals, see the
[Peripherals](#peripherals) section below.
## Building and Running
To run, first compile the WebAssembly module:

BIN
favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

View File

@@ -3,6 +3,7 @@
<head>
<title>Wipforth</title>
<link rel="stylesheet" type="text/css" href="styles.css"/>
<link rel="icon" type="image/png" href="favicon.png"/>
</head>
<body>
<script type="text/javascript" src="emu.js"></script>

View File

@@ -165,6 +165,10 @@ CHAR . EMIT
: NIP SWAP DROP ;
: HEX 16 BASE ! ;
: DECIMAL 10 BASE ! ;
: '
WORD FIND DUP 0<> IF
>CFA