Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CONSTANT rx, 01             ;UART receiver
  2.  
  3. ...
  4.  
  5. INPUT       direction, rx  
  6. ;move head according to received direction
  7. COMPARE     direction, 7A               ;'z'
  8. CALL        Z, move_up
  9. COMPARE     direction, 64               ;'d'
  10. CALL        Z, move_right
  11. COMPARE     direction, 73               ;'s'
  12. CALL        Z, move_down
  13. COMPARE     direction, 71               ;'q'
  14. CALL        Z, move_left
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement