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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/10/07 06:38
Read: times


 
#144214 - explanation
Responding to: ???'s previous message
The assembler ("compiler") needs to distinguish symbols (labels, names), such as LOOP1 from literals (numbers), such as 123h.

The examples above are pretty obvious, but what if I have a label
AAh:
and also want to use the number, AAh?

The agreed way how to distinguish symbols from numbers in Intel's notation (i.e. with the 'h' suffix to denote hexadecimal number) is, that:
- labels start with characters ('a'-'z'; 'A'-'Z') and underscore ('_')
- numbers start with digits ('0'-'9').

That's why a '0' has to be written explicitly in front of such hexacedimal numbers, which start with "letters" (A-F).

JW


PS. It's compiler, not complier.

List of 13 messages in thread
TopicAuthorDate
Assemble code            01/01/70 00:00      
   Have a look at the listing file            01/01/70 00:00      
   hex number begin with 0 -> #0AAH            01/01/70 00:00      
      explanation            01/01/70 00:00      
         RTFM!            01/01/70 00:00      
            please say out aloud            01/01/70 00:00      
               [OT] Leading zeros on numbers in C            01/01/70 00:00      
   reply            01/01/70 00:00      
      Yes            01/01/70 00:00      
         Explanation            01/01/70 00:00      
      asked and answered            01/01/70 00:00      
         Only for him            01/01/70 00:00      
   thanks            01/01/70 00:00      

Back to Subject List