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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/05/06 21:01
Read: times


 
#127401 - directives are to control the behaviour...
Responding to: ???'s previous message
Directives are to control the behaviour of the compiler (assembler), when compiling (assembling, translating from source to machine code). It means, that some parts of the source will be translated and other won't. For example (with freely adopted syntax, this might not work with the metalink assembler):
$SET FASTCODE
(... no other $SET directives ...)
$IF FASTCODE
  blahblah1
$ELSE
  blahblah2
$ENDIF
(...)
$IF SLOWCODE
  blahblah3
$ELSE
  blahblah2
$ENDIF
(...)

Here, blahblah1 will be translated, blahblah2 won't; blahblah3 won't, blahblah4 will.

On the other hand, you want to tell the processor, that he needs to compare A and B, so you definitively want that part to be translated (assembled), and you want that the processor makes the check. You need to choose then the instructions the processor knows - and those you'll find listed in the mentioned "bible".

Jan Waclawek


List of 12 messages in thread
TopicAuthorDate
compare registers            01/01/70 00:00      
   Bible            01/01/70 00:00      
      Andy, please, don't mislead him            01/01/70 00:00      
   this is not my homework !!!            01/01/70 00:00      
      directives are to control the behaviour...            01/01/70 00:00      
   8051 Instructions            01/01/70 00:00      
      nobody mentioned CJNE            01/01/70 00:00      
         Skinnin' cats            01/01/70 00:00      
            miaaaaauuuuuuuuuuw            01/01/70 00:00      
            does 0730 mean \"late late night\" ? :-)            01/01/70 00:00      
               Probably            01/01/70 00:00      
                  a better assembler will handle that            01/01/70 00:00      

Back to Subject List