<?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>plz query this program</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21707/plz-query-this-program</link><description> 

#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;reg52.h&amp;gt;
#define XBYTE ((unsigned char volatile xdata*) 0

unsigned char dummy = 0x55;
bit bitValue;

void main (void)
{
 bitValue = dummy &amp;amp; 0x40;
 XBYTE[0x1234]= 0x55;
 return;
}

 
 


 
This program doesnt execute. plz</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: plz query this program</title><link>https://community.arm.com/thread/99205?ContentTypeID=1</link><pubDate>Wed, 09 May 2007 17:15:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:04114b0e-7050-46f8-9ecd-81f899b6bad2</guid><dc:creator>Neil Kurzmam</dc:creator><description>&lt;p&gt;&lt;p&gt;
#define XBYTE ((unsigned char volatile xdata*) 0&lt;br /&gt;
XBYTE[0x1234] = 0x55;&lt;/p&gt;

&lt;p&gt;
two problems&lt;br /&gt;
1. XBYTE is defined by the compiler. Look it in the docmentation.&lt;br /&gt;
2. Is that a valid ANSI C statment&lt;/p&gt;

&lt;p&gt;
unsigned char volatile xdata *bytePtr;&lt;br /&gt;
bytePtr[0x1234] = 0x55;&lt;br /&gt;
should work&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: plz query this program</title><link>https://community.arm.com/thread/112868?ContentTypeID=1</link><pubDate>Wed, 09 May 2007 08:25:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fe480bf1-e788-4ec5-91f7-4642a14858ca</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;a href="http://www.keil.com/books/8051books.asp"&gt;http://www.keil.com/books/8051books.asp&lt;/a&gt;&lt;br /&gt;

&lt;a href="http://www.8052.com/books.phtml"&gt;www.8052.com/books.phtml&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.8052.com/tutorial.phtml"&gt;www.8052.com/tutorial.phtml&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man_c51.htm"&gt;http://www.keil.com/support/man_c51.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
And don&amp;#39;t forget the so-called &amp;quot;bible&amp;quot; for the 8051:&lt;/p&gt;

&lt;p&gt;
Chapter 1 - 80C51 Family Architecture:&lt;br /&gt;
&lt;a href="http://www.nxp.com/acrobat_download/various/80C51_FAM_ARCH_1.pdf"&gt;www.nxp.com/.../80C51_FAM_ARCH_1.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Chapter 2 - 80C51 Family Programmer&amp;#39;s Guide and Instruction
Set:&lt;br /&gt;

&lt;a href="http://www.nxp.com/acrobat_download/various/80C51_FAM_PROG_GUIDE_1.pdf"&gt;www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Chapter 3 - 80C51 Family Hardware Description:&lt;br /&gt;

&lt;a href="http://www.nxp.com/acrobat_download/various/80C51_FAM_HARDWARE_1.pdf"&gt;www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: plz query this program</title><link>https://community.arm.com/thread/112870?ContentTypeID=1</link><pubDate>Wed, 09 May 2007 08:02:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ae198e69-0ed1-4554-b598-008f6c51c32a</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;it is advisable that you spend some time learning,&lt;/i&gt;&lt;br /&gt;
NO, it is &lt;b&gt;required&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;
You are asking a question &lt;b&gt;when you are not even qualified to
ask&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;
There is the most fundamental PCidiotic error in your
scribbles.&lt;/p&gt;

&lt;p&gt;
You need to understand the most basic conceprt before going even
the small step you ask about.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: plz query this program</title><link>https://community.arm.com/thread/99197?ContentTypeID=1</link><pubDate>Wed, 09 May 2007 07:20:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4ff01f0e-2faa-4dd1-b8da-20ebe7898fb5</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
In your &amp;quot;learning stage&amp;quot;, it is advisable that &lt;b&gt;you&lt;/b&gt; spend
some time &lt;b&gt;learning&lt;/b&gt;, by carefully looking at your code, and by
googling for hints. To specifically &lt;b&gt;request&lt;/b&gt; an answer is not
nice, and will definitely not let you learn anything.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: plz query this program</title><link>https://community.arm.com/thread/99204?ContentTypeID=1</link><pubDate>Wed, 09 May 2007 07:18:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3873dd05-6ac1-46ce-9848-a617c75b5853</guid><dc:creator>Dan Henry</dc:creator><description>&lt;p&gt;&lt;p&gt;
Try (I can&amp;#39;t compile it here):&lt;/p&gt;

&lt;pre&gt;
#define XBYTE (unsigned char volatile xdata*)
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: plz query this program</title><link>https://community.arm.com/thread/75089?ContentTypeID=1</link><pubDate>Wed, 09 May 2007 07:14:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a65dc8ea-e05e-4b48-a3df-bdb883d790a4</guid><dc:creator>Ranjith kumar Kandasamy</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&lt;br /&gt;
The Error Message is :&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Suscript on non array or too many dimensions.&lt;br /&gt;
syntex error near.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;so plz sending the correct coding sir. Because this is my
learning stage.&lt;/i&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: plz query this program</title><link>https://community.arm.com/thread/48116?ContentTypeID=1</link><pubDate>Wed, 09 May 2007 07:06:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9d3015c4-8ce2-4f4f-8e18-d9c5687f5b96</guid><dc:creator>Dan Henry</dc:creator><description>&lt;p&gt;&lt;p&gt;
Doesn&amp;#39;t execute? I&amp;#39;d bet it doesn&amp;#39;t even compile, and if not, take
a look at the error message.&lt;/p&gt;

&lt;p&gt;
Hint: XBYTE has an error.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>