Difference between revisions of "Autolathe/Internal Memory"
From Unofficial Stationeers Wiki
(→Internal Memory) |
(→Internal Memory) |
||
Line 17: | Line 17: | ||
! rowspan="3" | 1 | ! rowspan="3" | 1 | ||
| rowspan="3" | StackPointer | | rowspan="3" | StackPointer | ||
− | | rowspan="3" | | + | | rowspan="3" | The current address the stack pointer is pointing to. It cycles through the available addresses (53 through 0) in a descending manner. |
| rowspan="3" | 63 | | rowspan="3" | 63 | ||
| style="text-align:center;" | 0-7 | | style="text-align:center;" | 0-7 |
Latest revision as of 08:10, 12 November 2024
These are all of the Autolathe Internal Memory descriptions in the game.
Internal Memory[edit]
These are all valid instructions, that can be written or read with IC10, on Autolathe's stack.
Op_code | Name | Description | Valid Address | Bits | Bits Description |
---|---|---|---|---|---|
1 | StackPointer | The current address the stack pointer is pointing to. It cycles through the available addresses (53 through 0) in a descending manner. | 63 | 0-7 | Op_code |
8-23 | Index | ||||
24-63 | Unused | ||||
2 | ExecuteRecipe | This instruction will set the device to the specified prefabhash, and then begin manufacturing it. The final element of the payload is the quantity. So you can ask the device to make 200 ItemSteelSheets and it will do that. The quantity is a byte - so the maximum you can request is 255. | 0-53 | 0-7 | Op_code |
8-15 | Quantity | ||||
16-47 | Prefab_hash | ||||
48-63 | Unused | ||||
3 | WaitUntilNextValid | This is a flag that if there is an ExecuteRecipe in the next address, then it will wait until it can be completed. So if you put this before an ExecuteRecipe, the device will sit there till the order can be completed because it is waiting for ingredients. | 0-53 | 0-7 | Op_code |
8-63 | Unused | ||||
4 | JumpIfNextValid | This is another flag that applies to the next address (if it is ExecuteRecipe). If the recipe cannot be completed, then the Fabricator will jump to the specified address. | 0-53 | 0-7 | Op_code |
8-23 | Stack_Address | ||||
24-63 | Unused | ||||
5 | JumpToAddress | This will jump to a specific address. This will set the stack pointer to the address you specify. | 0-53 | 0-7 | Op_code |
8-23 | Stack_Address | ||||
24-63 | Unused | ||||
6 | DeviceSetLock | This will set the lock state of the device (true 1, false 0), similar to the "L" IC instruction. Useful if you want to lock the device, do something, then unlock it. | 0-53 | 0-7 | Op_code |
8-15 | Lock_State | ||||
16-63 | Unused | ||||
7 | EjectReagent | This allows you to specity the reagent you want to eject. All reagents of that type will be ejected. The stack will not advance until this is complete | 0-53 | 0-7 | Op_code |
8-39 | Reagent_Hash | ||||
40-63 | Unused | ||||
8 | EjectAllReagents | This instruction will eject all its reagents and pause execution till this is finished. | 0-53 | 0-7 | Op_code |
8-63 | Unused | ||||
9 | MissingRecipeReagent | Desc | 54-62 | 0-7 | Op_code |
8-15 | Quantity_Ceil | ||||
16-47 | Reagent_Hash | ||||
48-63 | Unused | ||||
Update 0.2.5025.22811 - Fri 02/07/2024 /Internal Memory |