Fork me on GitHub

Collapse OS Web Emulators

Based on a Z80 JavaScript emulator, this project aims to emulate CollapseOS within your browser.

Since the 2020-06 version (which is implemented in Forth), you also have the option to emulate the ForthVM directly in JavaScript, instead of emulating the Z80 ForthVM in Z80.js.

There are various emulators with different built-in (virtual) hardware available, as well as a tool to edit virtual SD cards that use the CFS or BFS filesystem.

When loading this from GitHub Pages, ROM and one SD card filesystem are loaded automatically. When loaded from local disk, you have to load the ROM and SD card manually.

For 2020-02 and older, the provided SD card image contains source code of all the included tools and of the kernel (ROM). For newer versions, the SD Card is a direct copy of the Block filesystem without any modifications.

For 2020-02 and earlier, in addition to the original ed, memt and zasm binaries, my images also include a convenience zmake binary - zmake foo will assemble foo/glue.asm to foo and will overwrite existing binaries. There is also a BASIC interpreter based on TinyBasic, with lowercase variable/keyword support and added IN/OUT/PEEK/POKE/SYS commands.

February 2022 version (Based on snapshot at 2022-02-21) (Documentation)

Emulator 1 (Simple system)

Emulator 2 (Advanced system)

Emulator 3 (Game console)

Emulator 4 (Grid display)

Emulator 0 (Javascript Forth)

Image Tools

Load SD card images using BFS filesystem; edit blocks inside; save as uncompressed or compressed (.PNG) file.

September 2021 version (Based on snapshot at 2021-09-24) (Documentation)

Emulator 1 (Simple system)

Emulator 2 (Advanced system)

Emulator 3 (Game console)

Emulator 4 (Grid display)

Emulator 0 (Javascript Forth)

Image Tools

Load SD card images using BFS filesystem; edit blocks inside; save as uncompressed or compressed (.PNG) file.

April 2021 version (Based on snapshot at 2021-04-03)

Emulator 1 (Simple system)

Emulator 2 (Advanced system)

Emulator 3 (Game console)

Emulator 4 (Grid display)

Emulator 0 (Javascript Forth)

Image Tools

Load SD card images using BFS filesystem; edit blocks inside; save as uncompressed or compressed (.PNG) file.

June 2020 version

Emulator 1 (Simple system)

Emulator 2 (Advanced system)

Emulator 3 (Game console)

Emulator 4 (Grid display)

Emulator 0 (Javascript Forth)

Image Tools

Load SD card images using BFS filesystem; edit blocks inside; save as uncompressed or compressed (.PNG) file.

February 2020 version

Emulator 1 (Simple system)

Emulator 2 (Advanced system)

Emulator 3 (Game console)

Emulator 4 (Grid display)

Emulator 0 (Minimal ROM system)

Image Tools

Load SD card images using CFS filesystem; add/download/rename/reorder/remove files inside; compact/optimize filesystem; save as uncompressed or compressed (.PNG) file.

November 2019 version

Emulator 1 (Simple system)

Emulator 2 (Advanced system)

Emulator 3 (Game console)

Image Tools

Load SD card images using CFS filesystem; add/download/rename/reorder/remove files inside; compact/optimize filesystem; save as uncompressed or compressed (.PNG) file.