mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-16 09:16:44 +00:00
improved visuals
parent
21e9eafc90
commit
eb0e02f4ac
@ -7,11 +7,10 @@ HOLO_HW equ 0x0009 ; HWID of the Hologram projector
|
||||
|
||||
; Data segment
|
||||
.data
|
||||
|
||||
counter: DW 0x0000 ; Counter global variable
|
||||
; The DW (Define word) directive writes the specified value(s), seperated by a
|
||||
; comma at assembly time. You can define a label before the directive to refer
|
||||
; to it by name.
|
||||
counter: DW 0x0000 ; Counter global variable
|
||||
; The DW (Define word) directive writes the specified value(s), seperated by a
|
||||
; comma at assembly time. You can define a label before the directive to refer
|
||||
; to it by name.
|
||||
|
||||
; Code/executable segment
|
||||
.text
|
||||
@ -106,7 +105,7 @@ Insert this code before the new code you write for MuchAssemblyRequired, and use
|
||||
</summary>
|
||||
|
||||
```assembly
|
||||
;******************** Hardware IDs
|
||||
;*************************** Hardware IDs
|
||||
HWID_LEGS equ 0x1
|
||||
HWID_LASER equ 0x2
|
||||
HWID_LIDAR equ 0x3
|
||||
@ -119,46 +118,44 @@ HWID_HOLO equ 0x9
|
||||
HWID_BATTERY equ 0xA
|
||||
HWID_FLOPPY equ 0xB
|
||||
|
||||
;******************** Actions IDs
|
||||
|
||||
; Drill
|
||||
;*************************** Drill actions IDs
|
||||
DRILL_POLL equ 1
|
||||
DRILL_GATHER_SLOW equ 2
|
||||
DRILL_GATHER_FAST equ 3
|
||||
; drill status
|
||||
; Drill status
|
||||
DRILL_STATUS_OK equ 0
|
||||
DRILL_STATUS_BUSY equ 1
|
||||
|
||||
; Inventory
|
||||
;*************************** Inventory actions IDs
|
||||
INV_POLL equ 1
|
||||
INV_CLEAR equ 2
|
||||
INV_EMPTY equ 0
|
||||
|
||||
; Laser
|
||||
;*************************** Laser actions IDs
|
||||
LASER_WITHDRAW equ 1
|
||||
LASER_DEPOSIT equ 2
|
||||
; items that can be used with the Laser
|
||||
; Items that can be used with the Laser
|
||||
ITEM_BIOMASS equ 0x1
|
||||
|
||||
; Legs
|
||||
;*************************** Legs actions IDs
|
||||
LEGS_SET_DIRECTION equ 1
|
||||
LEGS_SET_DIRECTION_AND_WALK equ 2
|
||||
|
||||
; Legs directions
|
||||
LEGS_DIR_NORTH equ 0
|
||||
LEGS_DIR_EAST equ 1
|
||||
LEGS_DIR_SOUTH equ 2
|
||||
LEGS_DIR_WEST equ 3
|
||||
|
||||
; LiDAR
|
||||
;*************************** LiDAR actions IDs
|
||||
LIDAR_GET_POS equ 1
|
||||
LIDAR_GET_PATH equ 2
|
||||
LIDAR_GET_MAP equ 3
|
||||
LIDAR_GET_WORLD_POS equ 4
|
||||
|
||||
; Keyboard
|
||||
;*************************** Keyboard actions IDs
|
||||
KEYBOARD_CLEAR equ 0
|
||||
KEYBOARD_FETCH_KEY equ 1
|
||||
; keys to use with Keyboard Hardware
|
||||
; Keys to use with Keyboard Hardware
|
||||
KEY_A equ 0x41
|
||||
KEY_D equ 0x44
|
||||
KEY_E equ 0x45
|
||||
@ -166,24 +163,24 @@ KEY_F equ 0x46
|
||||
KEY_S equ 0x53
|
||||
KEY_W equ 0x57
|
||||
|
||||
; Hologram Projector
|
||||
;*************************** Hologram Projector actions IDs
|
||||
HOLO_CLEAR equ 0
|
||||
HOLO_DISPLAY_HEX equ 1
|
||||
HOLO_DISPLAY_STRING equ 2
|
||||
HOLO_DISPLAY_DEC equ 3
|
||||
HOLO_DISPLAY_COLOR equ 4
|
||||
|
||||
; Battery
|
||||
;*************************** Battery actions IDs
|
||||
BATTERY_POLL equ 1
|
||||
BATTERY_GET_MAX_CAPACITY equ 2
|
||||
|
||||
; Random Number Generator
|
||||
;*************************** Random Number Generator actions IDs
|
||||
RNG_POLL equ 0
|
||||
|
||||
; Clock
|
||||
;*************************** Clock actions IDs
|
||||
CLOCK_POLL equ 0
|
||||
|
||||
; Floppy Dist
|
||||
;*************************** Floppy Disk actions IDs
|
||||
FLOPPY_POLL equ 1
|
||||
FLOPPY_READ_SECTOR equ 2
|
||||
FLOPPY_WRITE_SECTOR equ 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user