<?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>About C51 bank funtion call ?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/15659/about-c51-bank-funtion-call</link><description> Two funtiom. 
One is char A(char *str1,char *str1),this funtion is in BANK 6. 
main() is in bank 1; 
 
Now main() call A(Astr1,Astr2) have some error. Seem as some parameter has&amp;#39;t been pass OK. 
 
How do I can solve it? </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: About C51 bank funtion call ?</title><link>https://community.arm.com/thread/37684?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2001 09:33:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f5e3d085-7d7e-4c75-af2a-ce43ab0e00a6</guid><dc:creator>Thomas Mazowiesky</dc:creator><description>&lt;p&gt;First, if you are using NOREGPARAMS as a compiler directive, all parameters will be passed in fixed memory locations, not registers.  If there are more than three parameters, the remaining parameters are passed in fixed memory locations.  &lt;br /&gt;
&lt;br /&gt;
In the SMALL memory model, this memory may be either internal or external.  In COMPACT or LARGE, the parameters are passed in external memory only.&lt;br /&gt;
&lt;br /&gt;
By using a combination of the listing file(s) and the .M51 map file, you should be able to see where the linker is putting the parameters.&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About C51 bank funtion call ?</title><link>https://community.arm.com/thread/53782?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2001 06:49:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1e64b36c-8368-4b3c-ac2e-1e288aace925</guid><dc:creator>Hero Sitnc</dc:creator><description>&lt;p&gt;i meet the same question.&lt;br /&gt;
&lt;br /&gt;
The error is the function with two &lt;br /&gt;
&lt;br /&gt;
pointers parameters can&amp;#39;t work well,i &lt;br /&gt;
&lt;br /&gt;
think of the pointer can&amp;#39;t be &lt;br /&gt;
&lt;br /&gt;
transmitted to the function when it is &lt;br /&gt;
&lt;br /&gt;
called by other banks functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About C51 bank funtion call ?</title><link>https://community.arm.com/thread/37685?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2001 03:45:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:67786e40-56b4-4dad-b90b-93a19bfa18f9</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;Now main() call A(Astr1,Astr2) have some error.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
What error!? &lt;br /&gt;
Please be specific!&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;How do I can solve it? &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Can&amp;#39;t answer that if you don&amp;#39;t say what the actual problem is!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>