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

Back to Subject List

Thread Closed: Became flame-war

???
05/18/04 03:49
Read: times


 
#70582 - RE: A simple problem - Adnan
Responding to: ???'s previous message
Hi,

If you want to store anything more than 255 decimal or 0xFF then you have to resort to multi byte storage methods.

One simple way would be declare these spaces in the user RAM area based on the actual space that you need. And in deciding this you will need to know to convert from BCD to HEX and back.

Some such conversion routines are available in my home page http://www.8052.com/users/RRAGHU
and look under the CodeLib.

And as to your next query if your processor will hang if R1 overflows : It purely depends on what you do with the incremented value of the R1 register. By itself the R1 register will just rollover to Zero and thats it. But if you are using THIS value to divide something, or in some other operation, then wierd things can happen.

Note : While everybody understands the unoffical abbreviations, some members are keen to maintain the decorum of this forum by avoiding the SMS version. And no harm in following that discipline.( Once out of this forum and with my Cell phone you must see the SMS that I use !!)

Enjoy.

Raghu

List of 42 messages in thread
TopicAuthorDate
A simple problem            01/01/70 00:00      
   RE: A simple problem            01/01/70 00:00      
   RE: A simple problem            01/01/70 00:00      
      RE: A simple problem            01/01/70 00:00      
         RE: Gibberish            01/01/70 00:00      
            RE: Gibberish            01/01/70 00:00      
               RE: Gibberish            01/01/70 00:00      
                  RE: Gibberish            01/01/70 00:00      
                     RE: Gibberish            01/01/70 00:00      
         RE: Gibberish            01/01/70 00:00      
            RE: Gibberish            01/01/70 00:00      
            RE: Gibberish - or SMS            01/01/70 00:00      
   Whats wrong with this forum            01/01/70 00:00      
      RE: Whats wrong with this forum            01/01/70 00:00      
         RE: Whats wrong with this forum            01/01/70 00:00      
            RE: Whats wrong with this forum            01/01/70 00:00      
      y ppl r so lazy?!            01/01/70 00:00      
         RE: y ppl r so lazy?!            01/01/70 00:00      
            RE: moving on            01/01/70 00:00      
      Thanks            01/01/70 00:00      
         RE: Thanks            01/01/70 00:00      
         RE: oh PLEASE FORGIVE ME            01/01/70 00:00      
         RE: oh PLEASE FORGIVE ME            01/01/70 00:00      
            No problem            01/01/70 00:00      
               RE: No problem            01/01/70 00:00      
            Specify the actual problem,,            01/01/70 00:00      
               RE: Specify the actual problem,,            01/01/70 00:00      
                  RE: Specify the actual problem,,            01/01/70 00:00      
                  RE: Specify the actual problem,,            01/01/70 00:00      
                  Here is your code            01/01/70 00:00      
   RE: A simple problem - Adnan            01/01/70 00:00      
      RE: A simple problem - Adnan            01/01/70 00:00      
         RE: A simple problem - Adnan            01/01/70 00:00      
            RE: A simple problem - Prahlad            01/01/70 00:00      
               The offer still stands - Adnan zaffar            01/01/70 00:00      
            RE: A simple problem - Adnan            01/01/70 00:00      
            RE: A simple problem - Adnan            01/01/70 00:00      
         RE: A simple problem - Terry            01/01/70 00:00      
      RE: Simple way            01/01/70 00:00      
      RE: A simple problem - Adnan            01/01/70 00:00      
   What a sad thread!            01/01/70 00:00      
      RE: What a sad thread!            01/01/70 00:00      

Back to Subject List