VolkanaDEV

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

PageWhat it covers
ISA29 assigned slots, frozen numbers, reserved ones.
SemanticsHow each category of op behaves on the stack and on the grid.
ConformanceHow a new executor is admitted, and the per-op test suite.
DeterminismWhy the same artifact gives the same bytes on every machine.
ArtifactsThe text format, the header, and how to read a .bc by eye.
GlossaryBloodCode vocabulary.