1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-06 03:20:56 +11:00
collapseos/tools/emul
Virgil Dupras 34ee91a0d7 zasm: use blkdev IDs as input and output
This will soon allow use to seek and tell on input, which is necessary
for a second pass which is necessary for forward symbol references.

This require making `blkSel` a bit more flexible. Rather than having one
global selected blkdev, each app can select its own, in its own memory
space.
2019-05-10 19:33:34 -04:00
..
libz80@8a1f935daa Add tools/emul 2019-05-09 12:58:41 -04:00
.gitignore Move apps/zasm/emul to tools/emul 2019-05-09 14:09:40 -04:00
bin2c.sh Add tools/emul 2019-05-09 12:58:41 -04:00
Makefile zasm: Read from and write to streams instead of memory 2019-05-09 15:36:03 -04:00
README.md Add tools/emul 2019-05-09 12:58:41 -04:00
shell_.asm Add tools/emul 2019-05-09 12:58:41 -04:00
shell.c Move apps/zasm/emul to tools/emul 2019-05-09 14:09:40 -04:00
zasm_glue.asm zasm: use blkdev IDs as input and output 2019-05-10 19:33:34 -04:00
zasm_user.asm zasm: use blkdev IDs as input and output 2019-05-10 19:33:34 -04:00
zasm.c zasm: use blkdev IDs as input and output 2019-05-10 19:33:34 -04:00

emul

This is an emulator for a virtual machine that is suitable for running Collapse OS. The goal of this machine is not to emulate real hardware, but rather to serve as a development platform. What we do here is we emulate the z80 part, the 64K memory space and then hook some fake I/Os to stdin, stdout and a small storage device that is suitable for Collapse OS's filesystem to run on.

Through that, it becomes easier to develop userspace applications for Collapse OS.

We don't try to emulate real hardware to ease the development of device drivers because so far, I don't see the advantage of emulation versus running code on the real thing.

Usage

First, make sure that the libz80 git submodule is checked out. If not, run git submodule init && git submodule update.

The Makefile in this folder has multiple targets that all use libz80 as its core. For example, make shell will build ./shell, a vanilla Collapse OS shell. make zasm will build a ./zasm executable, and so on.

See documentation is corresponding source files for usage documentation of each target.