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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/13/08 12:11
Read: times


 
#149400 - NO!
Responding to: ???'s previous message
Andy Neil said:
Chico Magalhães said:
You mean "A" value will be always equal "ACC" value ?

Yes - they just represent different ways of getting to the same end!

Sorry, Andy, but this is misleading - and exactly in the way people are confused by A vs. ACC.

The best way to view A is, to accept it as a part of the mnemonics. I.e., take it as there is no MOV x,y where you can replace x or y for A, but that there are MOV A,y and MOV x,A and that these instruction happen to work on a special function register (SFR) at address 0E0h. This register can be accessed by any direct access instruction exactly as other SFRs can be - for example, you can do PUSH 0E0h - but there is a convenient name predefined in almost all assemblers for this SFR, and that name is ACC.

A similarly confusing concept in '51 are the registers - R0, R1, etc. - which again are best viewed as part of the mnemonics, rather than register names.

JW





List of 32 messages in thread
TopicAuthorDate
Where can I ask newbie questions?            01/01/70 00:00      
   There is no such thing as a newbie question            01/01/70 00:00      
      the question            01/01/70 00:00      
         jump table            01/01/70 00:00      
            WOW, this is what I'm looking for!            01/01/70 00:00      
               *Very* Dangerous game!            01/01/70 00:00      
                  Agree with Dangerous            01/01/70 00:00      
                  PC            01/01/70 00:00      
               A and ACC            01/01/70 00:00      
                  ACC            01/01/70 00:00      
                     Different ways of getting to the same thing            01/01/70 00:00      
                        NO!            01/01/70 00:00      
                           OK, to put it another way...            01/01/70 00:00      
               jump table            01/01/70 00:00      
         the simple and stupid way...            01/01/70 00:00      
   One way to do this            01/01/70 00:00      
      Compare with JMP @A+PC            01/01/70 00:00      
         Yes there is            01/01/70 00:00      
         JMP @A+PC?            01/01/70 00:00      
            Oops            01/01/70 00:00      
   FAQ?            01/01/70 00:00      
      I think...            01/01/70 00:00      
         That's fine            01/01/70 00:00      
         English,            01/01/70 00:00      
   Newbie questions            01/01/70 00:00      
      Steve, I disagree            01/01/70 00:00      
   One question at a time            01/01/70 00:00      
   Agree to one question at time...            01/01/70 00:00      
      manipulating PC            01/01/70 00:00      
         PC            01/01/70 00:00      
   isnt an abuse ask more questions?            01/01/70 00:00      
      You said it yourself - start a new thread!            01/01/70 00:00      

Back to Subject List