Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.4KB

5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. # emul
  2. This folder contains a couple of tools running under the [libz80][libz80]
  3. emulator.
  4. ## Not real hardware
  5. In the few emulated apps described below, we don't try to emulate real hardware
  6. because the goal here is to facilitate "high level" development.
  7. These apps run on imaginary hardware and use many cheats to simplify I/Os.
  8. For real hardware emulation (which helps developing drivers), see the `hw`
  9. folder.
  10. ## Build
  11. First, make sure that the `libz80` git submodule is checked out. If not, run
  12. `git submodule init && git submodule update`.
  13. After that, you can run `make` and it builds the `forth` interpreter.
  14. Run `./forth` to get the COllapse OS prompt. Type `0 LIST` for help.
  15. ## Problems?
  16. If the libz80-wrapped zasm executable works badly (hangs, spew garbage, etc.),
  17. it's probably because you've broken your bootstrap binaries. They're easy to
  18. mistakenly break. To verify if you've done that, look at your git status. If
  19. `forth.bin` is modified, try resetting it and then run `make clean all`. Things
  20. should go better afterwards.
  21. If that doesn't work, there's also the nuclear option of `git reset --hard`
  22. and `git clean -fxd`.
  23. If that still doesn't work, it might be because the current commit you're on
  24. is broken, but that is rather rare: the repo on Github is plugged on Travis
  25. and it checks that everything is smooth.
  26. [libz80]: https://github.com/ggambetta/libz80