Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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

List of 16 messages in thread
TopicAuthorDate
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      

Back to Subject List