mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 22:36:44 +00:00
Page:
(Hardware) Legs
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
0
(Hardware) Legs
simon987 edited this page 2019-11-03 09:21:11 -05:00
Table of Contents
Articulated spider-like legs. Enables your Cubot to walk on standard surfaces.
Specifications
Manufacturer: 立方電子
Version: 1.0B
Default address: 0x0001
Hardware ID: 0x0001
Interrupt Behavior
Value of A | Action | Energy cost | Result |
---|---|---|---|
1 |
LEGS_SET_DIRECTION |
20 kJ |
Turns the Cubot to face the direction specified in register B . |
2 |
LEGS_SET_DIRECTION_AND_WALK |
100 kJ |
Moves the Cubot to face and walk in the direction specified by register B . |
Valid directions
Direction | Value |
---|---|
North | 0x0000 |
East | 0x0001 |
South | 0x0002 |
West | 0x0003 |
Notes
- Only one walk can be performed per tick, the last such
LEGS_SET_DIRECTION_AND_WALK
in the tick will be the one performed during the tick transition.LEGS_SET_DIRECTION
may be performed multiple times during a tick. - Since only the last
LEGS_SET_DIRECTION_AND_WALK
in a tick will be performed, running the action does not immediately use energy, which means that using this action 5 times in one tick will not use500 kJ
and instead consume100 kJ
at the end of the tick. This is not true forLEGS_SET_DIRECTION
, which will use energy immediately upon being ran.