mirror of
				https://github.com/simon987/Much-Assembly-Required.git
				synced 2025-11-04 10:06:54 +00:00 
			
		
		
		
	
						
							Page:
							(Hardware) Construction Arm
						
						
					
					
							Pages
							
							
								(Hardware) Battery
							
								(Hardware) Clock
							
								(Hardware) Construction Arm
							
								(Hardware) Core
							
								(Hardware) Drill
							
								(Hardware) Floppy Drive
							
								(Hardware) Hologram Projector
							
								(Hardware) Inventory
							
								(Hardware) Keyboard
							
								(Hardware) Laser
							
								(Hardware) Legs
							
								(Hardware) LiDAR
							
								(Hardware) Radio Receiver
							
								(Hardware) Random Number Generator
							
								(Hardware) Universal Com Port
							
								(Installation) Arch Linux
							
								(Installation) Windows
							
								(Snippet) Constants
							
								(Snippet) Dump memory to disk
							
								(Snippet) Keyboard controlled robot
							
								(Snippet) Manhattan distance
							
								(Snippet) Move in a random direction
							
								Assembler directives
							
								Assembly program examples
							
								Basic Assembly tutorial
							
								Biomass
							
								Blueprint
							
								CPU
							
								Collaboration Guide
							
								Day Night Cycle and solar Energy
							
								Debugging
							
								Game Universe
							
								Hacked NPC
							
								Hardware
							
								Home (old)
							
								Home
							
								Instruction Encoding
							
								Instruction Set
							
								Items
							
								Learn by Examples
							
								NPC Factory
							
								Non Player Character (NPC)
							
								Project structure
							
								Radio Tower
							
								Random Access Memory
							
								Road Map
							
								The Cubot Manuals
							
								The Game Universe
							
								Useful Code Snippets
							
								Users' Repositories
							
								World
							
						
					 Clone
	
					0 
					
				
						(Hardware) Construction Arm
						
				
							
							OrdoFlammae edited this page 2019-11-26 14:14:28 -06:00 
						
					Table of Contents
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_BLOCKED0x0002:ERR_NOT_ENOUGH_ENERGY0x0003: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