From 3d9933ebad77c4540e528b1d4bfea64c92d791dc Mon Sep 17 00:00:00 2001 From: Izaya Orihara Date: Sun, 11 Dec 2016 11:27:55 +1100 Subject: [PATCH] Added more info to the readme on using stuff and accessing memory. --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b5eb50..bb05770 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,15 @@ -# test3d +# Test3d Low-tech computing for Minetest -## T400 instructions +## Memory access +Memory access in this mod occurs over digilines, with the channel as the prefix plus the memory address, and the message as either the new value or 'get' to get it returned, so for example: + +|Prefix |Address | Value | Channel | Message | +|-------|---------------|-------|---------------|---------------| +|A | 1 | 4 | A1 | 4 | +|Default| 15 | get | DefaultF | get | + +## T400 +### Instructions TOS = top of stack | ins | function | mnemonic | @@ -13,3 +22,6 @@ TOS = top of stack |4090 | suptract TOS | sub | |4089 | jump to TOS | jmp | |4088 | skip if TOS = zero | sez | + +## T416 +The T416 is a 16-word memory. It stores 16 ints and is accessed as described in the Memory access section.