Advertisement
Guest User

Untitled

a guest
May 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; r0 - state
  2. start:
  3.     mov r0, 0
  4. wait:
  5.     ; wait for switch here
  6.     jmp wait
  7. n:
  8.     inc r0
  9.     jmp check
  10. d:
  11.     inc r0
  12.     inc r0
  13. check:
  14.     mov a, r0
  15.     add a, -3
  16.     jc done
  17.     jmp wait
  18. done:
  19.     ; open door here
  20.     jmp start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement