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 22:37
Read: times


 
#20811 - RE: RE:16 bit shift left
What I think is the solution is to get the BCD value and check for a > 8 value. If less then 8 then do my left shift as I need it, then store the value in 1 byte

Juan, your idea will work. That's exactly the logic that was used in the solution I posted to you earlier today at 10:48am in this thread. Check the code I gave you in this message. My code does use the carry bit, though.

Erik's solution will also work. It will use more code memory but will arrive at a solution faster and doens't modify the carry bit.

No-one really understands why you don't want to use the carry bit, though. If the carry bit has something important in it just PUSH PSW on the stack beforehand and pop it off the stack afterwards.

Craig Steiner


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