Kevin Ramharak 2019-11-03 15:41:21 +01:00
commit 84c1fcd3c7
24 changed files with 19 additions and 19 deletions

@ -1,16 +1,16 @@
This program creates a robot that is controlled directly by [Keyboard](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Keyboard).
This program creates a robot that is controlled directly by [Keyboard](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Keyboard).
Key | Action
------|---------
`WSAD` | Move
`E` | Mine using [Drill](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Drill)
`F` | Gather [Biomass](https://github.com/simon987/Much-Assembly-Required/wiki/Biomass) using [Laser](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Laser)
`I` | Show ID of item in [Inventory](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Inventory)
`C` | Clear [Inventory](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Inventory)
`E` | Mine using [Drill](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Drill)
`F` | Gather [Biomass](https://github.com/simon987/Much-Assembly-Required/wiki/Biomass) using [Laser](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Laser)
`I` | Show ID of item in [Inventory](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Inventory)
`C` | Clear [Inventory](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Inventory)
```assembly
; HEADER - Constants by hackersoup with help of many contributors
; https://github.com/simon987/Much-Assembly-Required/wiki/Snippet:-Constants
; https://github.com/simon987/Much-Assembly-Required/wiki/(Snippet)-Constants
;*************************** Hardware IDs
HWID_LEGS equ 0x1

@ -270,7 +270,7 @@ MOV B, 0x1337
HWI 9
BRK
```
You can try to execute it yourself by copying it directly into the game editor and uploading it. The code simply displays the number 0x1337 using the [Hologram Projector hardware](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Hologram-Projector)
You can try to execute it yourself by copying it directly into the game editor and uploading it. The code simply displays the number 0x1337 using the [Hologram Projector hardware](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Hologram-Projector)
The first instruction is a MOV (move) instruction. The syntax for the MOV instruction is MOV *destination*, *source* and it copies whatever is specified for the source operand in the destination operand, overwriting what was there before the instruction. The HWI instruction is explained more in detail here: [Hardware](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware)

@ -20,5 +20,5 @@
If you want to run Much Assembly Required locally for coding/debugging, we've got some tutorials for you.
* [Installation instructions for Arch Linux](https://github.com/simon987/Much-Assembly-Required/wiki/Installation:-Arch-Linux)
* [Installation instructions for Windows](https://github.com/simon987/Much-Assembly-Required/wiki/Installation:-Windows)
* [Installation instructions for Arch Linux](https://github.com/simon987/Much-Assembly-Required/wiki/(Installation)-Arch-Linux)
* [Installation instructions for Windows](https://github.com/simon987/Much-Assembly-Required/wiki/(Installation)-Windows)

@ -16,17 +16,17 @@ Hacked NPCs do not have shield, Floppy drive or Keyboard modules.
| Device | Default Address | Note |
| -------- | ------- | ------- |
| [Legs](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Legs) | `0x0001` | |
| [Laser](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Laser) | `0x0002` | |
| [LiDAR](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-LiDAR) | `0x0003` | |
| [Drill](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Drill) | `0x0005` | |
| NPC Inventory | `0x0006` | Same as regular [inventory](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Inventory) but with only 1 slot |
| [Random number generator](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Random-Number-Generator) | `0x0007` | |
| [Clock](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Clock) | `0x0008` | |
| [Hologram Projector](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Hologram-Projector) | `0x0009` | |
| [Legs](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Legs) | `0x0001` | |
| [Laser](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Laser) | `0x0002` | |
| [LiDAR](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-LiDAR) | `0x0003` | |
| [Drill](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Drill) | `0x0005` | |
| NPC Inventory | `0x0006` | Same as regular [inventory](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Inventory) but with only 1 slot |
| [Random number generator](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Random-Number-Generator) | `0x0007` | |
| [Clock](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Clock) | `0x0008` | |
| [Hologram Projector](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Hologram-Projector) | `0x0009` | |
| NPC Battery | `0x000A` | Same as regular battery, but does not have solar panel regeneration. The NPC dies when the energy level reaches `0` |
| [Radio Receiver](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Radio-Receiver) | `0x000C` | |
| [Universal Com Port](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Universal-Com-Port) | `0x000D`| |
| [Radio Receiver](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Radio-Receiver) | `0x000C` | |
| [Universal Com Port](https://github.com/simon987/Much-Assembly-Required/wiki/(Hardware)-Universal-Com-Port) | `0x000D`| |
| [Core]() | `0x000E` | NPCs have `100` hit points instead of `250` |
| [Construction Arm]() | `0x0010` | |