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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/17/05 09:51
Read: times


 
#103846 - Implicit/Explicit
Responding to: ???'s previous message
Slobodan Mandaric said:
If you try to write INC A and INC ACC, the first will be assembled as 04, the second as 05 E0 !


The INC A instruction is "Increment Accumulator", it has no operand - the affected object (A) is implicit in the instruction.
Perhaps it would've been better if they'd called it "INCA" rather than "INC A"? Then it might've been more obvious that the 'A' is not an operand in the usual sense.

The INC <direct> instruction increments the directly-addressed memory location specified by its "<direct>" operand. The "<direct>" operand could specify the address of the Accumulator - normally given the symbolic name "ACC"

The INC Rn instruction increments the Register specified by its "Rn" operand.

See Chapter 2 of the "bible":

Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set:
http://www.semiconductors.philips.com/acrobat/v...UIDE_1.pdf




List of 7 messages in thread
TopicAuthorDate
Increment Function            01/01/70 00:00      
   ACC is a direct register            01/01/70 00:00      
      Implicit/Explicit            01/01/70 00:00      
         gain?            01/01/70 00:00      
            single clocker            01/01/70 00:00      
   wiki            01/01/70 00:00      
   The A/ACC and B registers are located in            01/01/70 00:00      

Back to Subject List