Mirror of CollapseOS
Go to file
Clanmaster21 6281e2036f Optimised intoXX functions (#19)
* Optimised intoXX functions

Rewrote intoXX functions to mainly rely on intoHL, as the HL instructions are smaller and faster. Also removed some redundant push and pop instructions. I edited the given unit tests to test these, and they seem to work as expected.

* Doesn't use self-modifying code

The number of bytes is the same as my previous attempt, with 11 more cycles in intoHL, so although I don't feel as clever this time it's still a good optimisation. I found an equivalent method for intoDE, however relying on intoHL still allows for  `ex (sp), hl` to be used in intoIX, which is smaller and faster.

* Update core.asm

* Tried harder to follow coding convention

Added tabs between mnemonics and operands, and replaced a new line I accidentally removed.
2019-10-10 14:44:23 -04:00
apps Fix misc. source comment typos 2019-10-09 11:12:08 -04:00
doc Fix mis-documentation 2019-10-04 13:52:14 -04:00
kernel Optimised intoXX functions (#19) 2019-10-10 14:44:23 -04:00
recipes Fix misc. source comment typos 2019-10-09 11:12:08 -04:00
tools zasm: lower RAM requirements 2019-10-06 15:42:09 -04:00
.gitignore zasm emul: bring back kernel/user distinction 2019-05-19 12:57:59 -04:00
.gitmodules Add tools/emul 2019-05-09 12:58:41 -04:00
COPYING Re-license to GPLv3 2019-05-08 20:18:05 -04:00
README.md recipes/sms/kbd: PS/2 keyboard adapter for the SMS! 2019-07-20 12:42:55 -04:00

Collapse OS

Bootstrap post-collapse technology

Collapse OS is a z80 kernel and a collection of programs, tools and documentation that allows you to assemble an OS that, when completed, will be able to:

  1. Run on minimal and improvised machines.
  2. Interface through improvised means (serial, keyboard, display).
  3. Edit text files.
  4. Compile assembler source files for a wide range of MCUs and CPUs.
  5. Read and write from a wide range of storage devices.
  6. Replicate itself.

Additionally, the goal of this project is to be as self-contained as possible. With a copy of this project, a capable and creative person should be able to manage to build and install Collapse OS without external resources (i.e. internet) on a machine of her design, built from scavenged parts with low-tech tools.

Organisation of this repository

  • kernel: Pieces of code to be assembled by the user into a kernel.
  • apps: Pieces of code to be assembled into "userspace" application.
  • recipes: collection of recipes that assemble parts together on a specific machine.
  • doc: User guide for when you've successfully installed Collapse OS.
  • tools: Tools for working with Collapse OS from "modern" environments. Mostly development tools, but also contains emulated zasm, which is necessary to build Collapse OS from a non-Collapse OS machine.

Each folder has a README with more details.

Status

The project unfinished but is progressing well! See Collapse OS' website for more information.