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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/26/04 01:52
Read: times


 
#67433 - Forgot a few stuff, continuing on...
Responding to: ???'s previous message
Im still here! Have read all your suggestions, and am very grateful for the help, but i still cant make sense of it. As i said, im a real novice.

Maybe i can make things clearer to you,

i have the value 0Fh (15) in R6, i have set the external interrupts ex0 and ex1 to either increment this, or decrement this value when activated.
I need an easy to understand way of converting this hex value into decimal, and then ascii. I have never done it before, and my teacher is useless!

Thanks,

Ben.


Decimal is hex, hex is decimal. In fact, we humans have made up decimal/hex notation cause it is easier to read in certain situations. Basically, 0xFF is the same as 255, just in a different format. EXACTLY THE SAME. If 0xFF was in a register, the register would already contain 255, cause it is the same thing. Many people think that if something is in hex, it cannot be decimal unless converted in a special way, nothing is further from the truth.

Continuing on...
How would we display characters if everything was just a number on the computer? We just say that A is one, and B is Two and so on for all the characters, uppercase and lowercase, and backspace and everything.

But if there was no standard code, things would be haywire. People would have to recode everything and relearn each new system of coding the numbers. So there was this code that would be implemented into every computer, all of the letters and numbers required are the same. This is ascii, where numbers represent numbers. Look up the tables online, there should be plenty.

I think that is all of it...

List of 18 messages in thread
TopicAuthorDate
hex to decimal assembly            01/01/70 00:00      
   RE: hex to decimal assembly            01/01/70 00:00      
      RE: hex to decimal assembly            01/01/70 00:00      
         RE: hex to decimal assembly            01/01/70 00:00      
            RE: hex to decimal assembly            01/01/70 00:00      
               RE: hex to decimal assembly            01/01/70 00:00      
                  RE: hex to decimal assembly            01/01/70 00:00      
                     RE: hex to decimal assembly            01/01/70 00:00      
                        RE: hex to decimal assembly            01/01/70 00:00      
                           RE: hex to decimal assembly            01/01/70 00:00      
                              RE: hex to decimal assembly            01/01/70 00:00      
                           Back to basics            01/01/70 00:00      
                        RE: hex to decimal assembly            01/01/70 00:00      
   RE: hex to decimal assembly            01/01/70 00:00      
   RE: hex to decimal assembly            01/01/70 00:00      
      Forgot a few stuff, continuing on...            01/01/70 00:00      
         Number representations            01/01/70 00:00      
      Erm... Another correction to myself            01/01/70 00:00      

Back to Subject List