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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/17/12 11:14
Read: times


 
#185528 - Do some trial and error
Responding to: ???'s previous message
In C you have two distinct operators:
= assignment
== equality

'Most' languages follow the C operator conventions. However assemblers often have some historic baggage that means they accept EQ NE AND ...

Obviously these alphabetic operators need whitespace so that you can parse them safely. And humans may well be happier reading them.

So I would definitely do some experiments with your use of the 'assignment operator' in an arithmetic or logical expression. I suspect that it exists to keep some geriatric Basic users happy.

I strongly advise you to use something that is not ambiguous.

David.

List of 17 messages in thread
TopicAuthorDate
Conditional Statements            01/01/70 00:00      
   Hex constants?            01/01/70 00:00      
      0x00, 0x01, 0x02??            01/01/70 00:00      
   What is the octothorpe?            01/01/70 00:00      
      #            01/01/70 00:00      
         Immediate or not            01/01/70 00:00      
      what is an octothorpe?            01/01/70 00:00      
         Previously, on 8052.com            01/01/70 00:00      
   Problem solved, query still remains            01/01/70 00:00      
      Do some trial and error            01/01/70 00:00      
      Check the CJNE instruction...            01/01/70 00:00      
         Handy that!            01/01/70 00:00      
      run time vs compile time            01/01/70 00:00      
         IF only at assemble            01/01/70 00:00      
            Not Really!!            01/01/70 00:00      
               I second that            01/01/70 00:00      
            Hw variants or debugging are big users of conditionals            01/01/70 00:00      

Back to Subject List