Low-tech computing for Minetest
Go to file
Izaya f070f6510e New textures for the T416, it now looks like a somewhat unbalanced core memory module. 2017-01-14 17:19:38 +11:00
test3d_t400 Removed drop and mul, because they aren't neccesary and I wanted only 8 instructions. 2016-12-11 11:19:08 +11:00
test3d_t416 New textures for the T416, it now looks like a somewhat unbalanced core memory module. 2017-01-14 17:19:38 +11:00
LICENSE Initial commit 2016-09-12 22:34:23 +10:00
README.md Added more info to the readme on using stuff and accessing memory. 2016-12-11 11:27:55 +11:00
modpack.txt Turned the whole thing into a modpack. 2016-10-05 15:59:44 +11:00

README.md

Test3d

Low-tech computing for Minetest

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
4095 duplicate TOS dup
4094 swap TOS swp
4093 read memory from TOS read
4092 write to memory from TOS write
4091 add TOS add
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.