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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/27/08 06:42
Read: times


 
Msg Score: +1
 +1 Informative
#160336 - that is context sensitive!
Responding to: ???'s previous message
Per Westermark said:


... The second-to-last value in the declaration (13) is the ASCII value for a new line. ...



Actually, that's not what the <CR> (0x0D) is supposed to represent. It simply moves the cursor to the left margin. The <LF> (0x0A) is what produces the new line, although it doesn't move the cursor horizontally. Much of the time, what's wanted, as "new line" is both.

Some systems interpret <CR> as being equivalent to <CR><LF> and some don't. Some interpret <LF> as meaning <CR><LF> while others don't. Often, you have the option of telling the system what's wanted in this regard.

If you just want "next line" then <LF> will do it. If you just want to move the cursor to the left margin, <CR> is the one you want, but it all depends on your environment.

RE


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