Added more info to the readme on using stuff and accessing memory.
This commit is contained in:
parent
f179bf3f41
commit
3d9933ebad
16
README.md
16
README.md
@ -1,6 +1,15 @@
|
|||||||
# test3d
|
# Test3d
|
||||||
Low-tech computing for Minetest
|
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
|
TOS = top of stack
|
||||||
|
|
||||||
| ins | function | mnemonic |
|
| ins | function | mnemonic |
|
||||||
@ -13,3 +22,6 @@ TOS = top of stack
|
|||||||
|4090 | suptract TOS | sub |
|
|4090 | suptract TOS | sub |
|
||||||
|4089 | jump to TOS | jmp |
|
|4089 | jump to TOS | jmp |
|
||||||
|4088 | skip if TOS = zero | sez |
|
|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.
|
||||||
|
Loading…
Reference in New Issue
Block a user