mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-04 06:22:58 +00:00
Page:
(Hardware) Battery
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) Battery
OrdoFlammae edited this page 2019-11-26 16:45:08 -06:00
Table of Contents
Generic medium-capacity battery.
Specifications
Manufacturer: 立方電子
Version: 1.0B
Default address: 0x000A
Hardware ID: 0x000A
Maximum Capacity: 60,000 kJ
Interrupt Behavior
Value of A | Action | Energy cost | Result |
---|---|---|---|
1 |
BATTERY_POLL |
0 kJ |
Copy the current charge of the battery in kJ into the B register |
2 |
BATTERY_GET_MAX_CAPACITY |
0 kJ |
Copy the maximum capacity of the battery into the B register |
Your Cubot will turn to a red color when its battery level is below 100kJ.
Your battery will refill over time with the solar panel, or you can refill it by consuming Biomass.