Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mov #0,W5
- btss PORTD, #6 ; keypad entry? if the bit is 1, skip. otherwise again check_keypad
- bra check_keypad
- inc W5,W5
- mov #psvoffset(lookup), W1 ; w1 is a pointer to the first byte of the lookup table (to 0).
- mov.b [W5+W1], W5 ; correct number written to w5.
- mov #LCD_line2, W1 ; W5 is a pointer to the first element of line2
- mov.b W5, [W1+15] ; Display the last element of line2
- bset PORTD, #13 ; turn the buzzer on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement