Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CONSTANT rx, 01 ;UART receiver
- ...
- INPUT direction, rx
- ;move head according to received direction
- COMPARE direction, 7A ;'z'
- CALL Z, move_up
- COMPARE direction, 64 ;'d'
- CALL Z, move_right
- COMPARE direction, 73 ;'s'
- CALL Z, move_down
- COMPARE direction, 71 ;'q'
- CALL Z, move_left
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement