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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/03/06 08:43
Read: times


 
#115437 - dec
Responding to: ???'s previous message
Cyrille Ngassam said:
Hi All! Hi Sir Richard !
I'm wondering about something : What is happening when Decrementing 0h ? I saw it from a book, but there is no explaination of the process. it is just said the results,when decrementing 0h the result, would be 256 ! I found it when reading about some loops.


Cyrille,
What you have will decrement memory location 0H and the result is undefined, unless you say that 0H contains 0 to begin with. After the DEC, 0H will contain 255 (0FFH), not 256, which would need 9 bits.

Steve

List of 24 messages in thread
TopicAuthorDate
DEC 0H ?            01/01/70 00:00      
   dec            01/01/70 00:00      
   How you figure its memory location zero?            01/01/70 00:00      
      Because            01/01/70 00:00      
         assumption...            01/01/70 00:00      
            think of it like a clock            01/01/70 00:00      
   i think it's bible time            01/01/70 00:00      
   ASSUME = ASS U ME read and head.            01/01/70 00:00      
      but the answer will still be in "the bib            01/01/70 00:00      
      It's in the title!            01/01/70 00:00      
         rely on history            01/01/70 00:00      
            exceptions?            01/01/70 00:00      
               not exactly that ...            01/01/70 00:00      
            DEC R6 ! (8051 chip)            01/01/70 00:00      
               the description of the DEC instruction            01/01/70 00:00      
                  Good! Erick            01/01/70 00:00      
                     why work from print            01/01/70 00:00      
                        I do !            01/01/70 00:00      
                           Surely that's justification enough.            01/01/70 00:00      
                           I did not suggest that            01/01/70 00:00      
                              I did not suggest that ! ....            01/01/70 00:00      
                     Think about an ordometer            01/01/70 00:00      
                        control apps            01/01/70 00:00      
                           In decimal mode ...            01/01/70 00:00      

Back to Subject List