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

Back to Subject List

Marlon Foendoe
11/26/08 08:24
Read: 302 times
Willemstad, Curacao
Curacao


 
#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      Marlon Foendoe      11/26/08 08:24      
   Used to?      Per Westermark      11/26/08 08:35      
      Indirect addressing mode on text      Marlon Foendoe      11/26/08 09:09      
         How an assembler works      David Prentice      11/26/08 09:20      
      that is context sensitive!        Richard Erlacher      11/27/08 00:42      
   It depends ... read the datasheet ... then guess      Richard Erlacher      11/26/08 15:09      
   Right back to basics - really foundational stuff      Andy Neil      11/26/08 17:49      
   The one thing it most certainly does not do...      Andy Neil      11/26/08 17:54      
      Thanks!!      Marlon Foendoe      11/27/08 08:10      

Back to Subject List