| ??? 06/30/00 05:13 Read: times |
#3498 - RE: Keypad issues |
Hi George, you rascal :-)
It's not wise to hold values in A, if they must live longer. Since most functions use A and destroy its contents. Only to give a value from one function to the next, A can be used. But real code can be saved on combining the multiplication with the addition of the next digit: ;Input: r6,r7 = 16 bit value ; a = new digit (0...9) ;Output: r6,r7 = r6,r7 * 10 + a Mul10AddDigit: xch a, r6 mov b, #10 mul ab xch a, r7 mov b, #10 mul ab add a, r6 ;add new digit xch a, r7 addc a, b ;with carry ! mov r6, a Peter |
| Topic | Author | Date |
| Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| Debouncing Keypads | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| RE: Keypad issues | 01/01/70 00:00 | |
| Keypad issues | 01/01/70 00:00 | |
RE: Debounced switch | 01/01/70 00:00 |



