Advertisement
Guest User

Untitled

a guest
Mar 26th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  interrupt 5 when input 0 = 1           'if input D0 is high, the programme will stop everything else and turn on the fan
  2. label_5:
  3.             out %xxx1x000           'Turn on output Q4
  4.             if input 0 = 1 then goto label_5    'check if input D0 is still high
  5.            out %xxx0xxxx
  6.             return              'return to main programme if D0 is low
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement