<?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>getting error as error C141: syntax error near &amp;#39;void&amp;#39;, expected &amp;#39;__asm&amp;#39;   at linevoid lcdcmd(unsigned char val)</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/48007/getting-error-as-error-c141-syntax-error-near-void-expected-__asm-at-linevoid-lcdcmd-unsigned-char-val</link><description> #include&amp;lt;reg51.h&amp;gt; sbit ir1=P1^0; //entry sbit ir2=P1^1; //exit sbit rs=P2^0; sbit rw=P2^1; sbit en=P2^2; void lcdcmd(unsigned char); void lcddat(unsigned char); void lcddis(unsigned char *s,unsigned char r ); void lcdconv(unsigned char); void delay(</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: getting error as error C141: syntax error near 'void', expected '__asm'   at linevoid lcdcmd(unsigned char val)</title><link>https://community.arm.com/thread/168559?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 09:18:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dd92b3bd-075d-4cb4-8c72-af821d71476b</guid><dc:creator>Andy Neil</dc:creator><description>[quote userid="53108" url="~/developer/tools-software/tools/f/keil-forum/48007/getting-error-as-error-c141-syntax-error-near-void-expected-__asm-at-linevoid-lcdcmd-unsigned-char-val/168555"]Some indentation would help you find these errors more easily[/quote]
&lt;p&gt;Hopefully, the original code does actually have this - and it&amp;#39;s just been lost in posting?&lt;/p&gt;
&lt;p&gt;&lt;a href="/members/heth" class="internal-link view-user-profile"&gt;Heth&lt;/a&gt; -&amp;nbsp;As with &lt;em&gt;&lt;strong&gt;any&lt;/strong&gt; &lt;/em&gt;internet forum, you&amp;nbsp;can&amp;#39;t just dump code into a post - you have to use the forum&amp;#39;s code posting facility to maintain the formatting/layout:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.avrfreaks.net/comment/2477336#comment-2477336"&gt;www.avrfreaks.net/.../2477336&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting error as error C141: syntax error near 'void', expected '__asm'   at linevoid lcdcmd(unsigned char val)</title><link>https://community.arm.com/thread/168555?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 06:08:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:37cab88e-2702-4c9a-8c0a-1637564e91ff</guid><dc:creator>Adam Lins</dc:creator><description>&lt;p&gt;You&amp;#39;re missing the closing brace to the while loop. The code you need is }, properly placed.&lt;/p&gt;
&lt;p&gt;Some indentation would help you find these errors more easily. Also, the MDK editor highlights parentheses so that it&amp;#39;s easier to see matches. I&amp;#39;d hope the 8051 tools did, too. If they don&amp;#39;t, editors like Visual Studio Code will.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting error as error C141: syntax error near 'void', expected '__asm'   at linevoid lcdcmd(unsigned char val)</title><link>https://community.arm.com/thread/168551?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 02:23:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:97256bb9-faff-4034-b959-599097c3e611</guid><dc:creator>Heth</dc:creator><description>&lt;p&gt;How should i solve it? What will be the code for it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting error as error C141: syntax error near 'void', expected '__asm'   at linevoid lcdcmd(unsigned char val)</title><link>https://community.arm.com/thread/168548?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 20:11:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b331fcf3-1d23-47cf-821a-7b653f885e84</guid><dc:creator>Adam Lins</dc:creator><description>&lt;p&gt;Unbalanced parentheses for the while(1) in main().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting error as error C141: syntax error near 'void', expected '__asm'   at linevoid lcdcmd(unsigned char val)</title><link>https://community.arm.com/thread/168532?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 10:48:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c6541b91-7a41-4d4c-a03e-978b68301fe0</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;The error should tell you exactly which line it refers to - please identify that line.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/471/2620._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>