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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/06/06 13:51
Read: times


 
#106701 - the only 16 bit register in th1 '51 is t
Responding to: ???'s previous message
Now i splitted my 8 bit number into two 4 bit numbers.
But does this work with 16 bit to 8 bit. Of course i tried this Method but Keil always warns be because of truncating value to 8 bits !!


The only 16 bit register in the '51 is the DPTR so anything else MUST be truncated to 8 bits.

Ok so, as an example, you want a variable such as 0x1234 to go in R0 and R1.

value equ 01234h

mov r0,HIGH value
mob r1 LOW value

will make r0 12 and r1 34

Erik

List of 16 messages in thread
TopicAuthorDate
16 bit to 8 bit            01/01/70 00:00      
   the only 16 bit register in th1 '51 is t            01/01/70 00:00      
      using relocatable segment            01/01/70 00:00      
         it is not Keil, it is the processor            01/01/70 00:00      
            SMS            01/01/70 00:00      
               TIA            01/01/70 00:00      
                  Hope This Helps            01/01/70 00:00      
                     RTFM (please read)            01/01/70 00:00      
                        That may be what you mean but            01/01/70 00:00      
               well, I did not            01/01/70 00:00      
                  Didn't know            01/01/70 00:00      
                     that I do            01/01/70 00:00      
                        Just goes to prove my point            01/01/70 00:00      
                           Is that an excuse for not trying to make            01/01/70 00:00      
                              Its a hint            01/01/70 00:00      
                              Hope That Helps            01/01/70 00:00      

Back to Subject List