| ??? 03/13/02 11:55 Read: times |
#20781 - RE: 16 bit shift left |
"So I wanted to take the BCD value (7 in this example) and use it as my loop counter to shift left 7"
Use a lookup table: index = (bcd_value - lowest_bcd_value) *2 mov a,index mov dptr,#lookup_table push acc movc a,@a+dptr mov r0,a pop acc inc dptr movc a,@dptr ... Erik |
| Topic | Author | Date |
| 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| RE: 16 bit shift left | 01/01/70 00:00 | |
| But why not the carry bit? | 01/01/70 00:00 | |
| RE:16 bit shift left | 01/01/70 00:00 | |
| RE: RE:16 bit shift left | 01/01/70 00:00 | |
| RE: RE:16 bit shift left | 01/01/70 00:00 | |
RE: RE:16 bit shift left | 01/01/70 00:00 |



