From 2a02d4fe7c403502eec97cd9e1ef5f12c5822f36 Mon Sep 17 00:00:00 2001 From: Simon Fortier Date: Tue, 2 Jul 2019 09:03:21 -0400 Subject: [PATCH] Created Hardware: Contruction Arm (markdown) --- Hardware:-Contruction-Arm.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Hardware:-Contruction-Arm.md diff --git a/Hardware:-Contruction-Arm.md b/Hardware:-Contruction-Arm.md new file mode 100644 index 0000000..c1a6abc --- /dev/null +++ b/Hardware:-Contruction-Arm.md @@ -0,0 +1,16 @@ +The construction arm allows a Cubot to read a blueprint from memory and place a [Construction Site](#) + +### Interrupt Behavior +| Value of A | Action | Energy cost | Result | +| --- | --- | --- | --- | +| `1` | `PLACE_CONSTRUCTION_SITE` | `10 kJ` | Read a [Blueprint](#) from memory starting at address `X`. The result code is stored in `B` | + +If successful, a new [Construction Site](#) will be placed in front of the player. + +**Result codes** + +* `0x0001`: `ERR_TILE_BLOCKED` +* `0x0002`: `ERR_NOT_ENOUGH_ENERGY` +* `0x0003`: `ERR_MEM_READ` (Problem while reading from memory, most likely array out of bounds) +* `0x0004`: `ERR_INVALID_BLUEPRINT` (Blueprint data does not correspond to any known blueprints) +* `0x0000`: `OK` \ No newline at end of file