Advertisement
Guest User

Untitled

a guest
May 28th, 2017
58
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.     jnb p1.1, maybe_n
  6.     jnb p2.1, maybe_d
  7.     sjmp wait
  8. maybe_n:
  9.     lcall delay
  10.     jnb p1.1, n
  11.     sjmp wait
  12. maybe_d:
  13.     lcall delay
  14.     jnb p2.1, d
  15.     sjmp wait
  16. d:
  17.     inc r0
  18. n:
  19.     inc r0
  20.     mov a, r0
  21.     add a, -3 ; add a, 253
  22.     jnc ov, wait
  23.     ; open door here
  24.     sjmp start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement