<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>define or another issue</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/16707/define-or-another-issue</link><description> #define MHI 1; 
unsigned char xdata TTT _at_ 0xff00; 
if((TTT&amp;amp;0x01)==MHI) 
{ 
} 
 
Hi,All 
I have a C51 program show on upper. 
I found it show error message syntax error after build. Then I tried to change code 
if((TTT&amp;amp;0x01)==1). and build .The compiler</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: define or another issue</title><link>https://community.arm.com/thread/86553?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2003 07:42:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c0823339-ec2e-4a9e-a45d-585304504797</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;a href="http://www.8052.com/forum/read.phtml?id=29152" target="_blank"&gt;http://www.8052.com/forum/read.phtml?id=29152&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: define or another issue</title><link>https://community.arm.com/thread/72052?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2003 04:50:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6ca32b8b-0a3b-44e0-ad0f-31c9e18deffa</guid><dc:creator>Mill Michael</dc:creator><description>&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: define or another issue</title><link>https://community.arm.com/thread/41215?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2003 04:17:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5e39b2d2-b380-4722-b04a-dd775e009cc5</guid><dc:creator>Michael D</dc:creator><description>&lt;p&gt;We&amp;#39;ve all made this mistake at some time i&amp;#39;m sure:&lt;br /&gt;
&lt;br /&gt;
#define lines do not need terminated with a semicolon&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;
#define MHI 1
unsigned char xdata TTT _at_ 0xff00;
if((TTT&amp;amp;0x01)==MHI)
{
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>