BloodCode Documentation
The frozen instruction set Sanguis compiles to. On these pages, red is the machine and blue is the notation.
BloodCode · 29 fixed slots · Iteration:BigBang
What BloodCode is
BloodCode is what actually runs. You write Sanguis, and it compiles to BloodCode underneath. A .bc file is plain text you can open and read. Every floor that runs it gives the same bytes, whether that's your computer, a web page or Sanguix.
In 4.0 we added system cells, 64-bit integer math, typed memory and machine code, without adding or changing a single instruction. BloodCode is still 29 instructions.
Sections
| Page | What it covers |
|---|---|
| ISA | 29 assigned slots, frozen numbers, reserved ones. |
| Semantics | How each category of op behaves on the stack and on the grid. |
| Conformance | How a new executor is admitted, and the per-op test suite. |
| Determinism | Why the same artifact gives the same bytes on every machine. |
| Artifacts | The text format, the header, and how to read a .bc by eye. |
| Glossary | BloodCode vocabulary. |