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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/08 14:24
Read: times


 
#160319 - Loading DPTR with ascii code
Dear all,

This is my first post. And I'm glad to participate to this forum.
I used to send text message from my uC to my PC. I have done this already for years but there is still one code that I like to know what really happens. It is the code where you load the DPTR register with ascii-code for text. I think the most of us know this code.

MOV DPTR, #TEXT
TEXT: DB "Hello World", 13, 0

The DB instruction translate the characters to ascii-code so the "Hello world” will be 48h 45h 4ch 4ch 20h 57h 4fh 52h 4ch 44h 0dh 00h
When I load DPTR with text what happen then?? The DPTR is a 16bit word.
All help will be greatly appreciated.
Have a nice day!!



List of 9 messages in thread
TopicAuthorDate
Loading DPTR with ascii code            01/01/70 00:00      
   Used to?            01/01/70 00:00      
      Indirect addressing mode on text            01/01/70 00:00      
         How an assembler works            01/01/70 00:00      
      that is context sensitive!            01/01/70 00:00      
   It depends ... read the datasheet ... then guess            01/01/70 00:00      
   Right back to basics - really foundational stuff            01/01/70 00:00      
   The one thing it most certainly does not do...            01/01/70 00:00      
      Thanks!!            01/01/70 00:00      

Back to Subject List