mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-16 17:26:43 +00:00
Add ITEM_* and KEY_* constants in hackersoup template for all API constants
parent
de54eee4e7
commit
56ecc383e7
@ -81,7 +81,7 @@ y_is_positive:
|
||||
|
||||
```
|
||||
|
||||
Constants by hackersoup
|
||||
Constants by hackersoup with [more contributors](https://github.com/simon987/Much-Assembly-Required/wiki/Assembly-program-examples/_history)
|
||||
```assembly
|
||||
;; Hardware IDs
|
||||
HWID_LEGS equ 0x1
|
||||
@ -129,6 +129,9 @@ LASER_WITHDRAW equ 1 ; Cost: 30kJ
|
||||
LASER_DEPOSIT equ 2 ; Cost: 30kJ
|
||||
;; Withdraw the desired item
|
||||
|
||||
;; items that can be used with the Laser
|
||||
ITEM_BIOMASS equ 0x1
|
||||
|
||||
;; Additional Info
|
||||
;; Specify the desired item by setting the value of the B register with an item ID.
|
||||
|
||||
@ -172,7 +175,16 @@ KEYBOARD_CLEAR equ 0 ; Cost: 0kJ
|
||||
KEYBOARD_FETCH_KEY equ 1 ; Cost: 0kJ
|
||||
;; Reads the oldest keycode from the buffer into the B register and remove it
|
||||
|
||||
;; keys to use with Keyboard Hardware
|
||||
KEY_A equ 0x41
|
||||
KEY_D equ 0x44
|
||||
KEY_E equ 0x45
|
||||
KEY_F equ 0x46
|
||||
KEY_S equ 0x53
|
||||
KEY_W equ 0x57
|
||||
|
||||
;; Additional Info
|
||||
;; The keycodes in game are in hexidecimal but in the url below they're in decimal
|
||||
;; Keycodes: keycode.info
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user