Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. mov #0,W5
  2. btss PORTD, #6 ; keypad entry? if the bit is 1, skip. otherwise again check_keypad
  3. bra check_keypad
  4. inc W5,W5
  5. mov #psvoffset(lookup), W1 ; w1 is a pointer to the first byte of the lookup table (to 0).
  6. mov.b [W5+W1], W5 ; correct number written to w5.
  7.  
  8. mov #LCD_line2, W1 ; W5 is a pointer to the first element of line2
  9. mov.b W5, [W1+15] ; Display the last element of line2
  10. bset PORTD, #13 ; turn the buzzer on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement