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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/01/10 04:40
Read: times


 
#174705 - 8051 Instruction MOV A, addr
Hi guys, I am coming back to 8051 after a long time. I was writing some example code in Assembly in the C51 keil IDE. One instruction bugging me is the
MOV A, addr, say my addr is 1000H
shouldn't the instruction move the byte at location 1000h to Accumulator?
or should the address be an 8bit address?
Also, I tried
MOVX A, @DPTR , which didn't work.
DPTR is 1000h

List of 14 messages in thread
TopicAuthorDate
8051 Instruction MOV A, addr            01/01/70 00:00      
   If reading from codespace, use 'MOVC'            01/01/70 00:00      
      Why CLR A ?            01/01/70 00:00      
         Good question..            01/01/70 00:00      
            I must be going blind!            01/01/70 00:00      
               re            01/01/70 00:00      
                  Did you check the so-called "bible"?            01/01/70 00:00      
                     I should have clarified            01/01/70 00:00      
                        external            01/01/70 00:00      
                  reply to re            01/01/70 00:00      
      CLR A??            01/01/70 00:00      
         "bible" time            01/01/70 00:00      
            Done :-)            01/01/70 00:00      
   "bible" time            01/01/70 00:00      

Back to Subject List