mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-21 03:26:44 +00:00
Updated Snippett: Move in a random direction (markdown)
parent
2d5e50dfe2
commit
725c3f53ae
@ -1,4 +1,5 @@
|
||||
;This snippett moves the cubot in a random direction.
|
||||
```assembly
|
||||
HWID_RNG equ 0x0007
|
||||
|
||||
HWID_HOLO equ 0x0009
|
||||
@ -16,3 +17,4 @@ LEGS_SET_DIRECTION_AND_WALK equ 0X002
|
||||
HWI HWID_HOLO ; Display the direction's numeric representation
|
||||
MOV A, LEGS_SET_DIRECTION_AND_WALK
|
||||
HWI HWID_LEGS
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user