diff --git a/Assembly-program-examples.md b/Assembly-program-examples.md index 4a0d19c..08adf07 100644 --- a/Assembly-program-examples.md +++ b/Assembly-program-examples.md @@ -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