<?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>i&amp;#39;m a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23635/i-m-a-beginner-i-need-program-which-multiply-2-real-inputs</link><description> 
hi, i&amp;#39;m a beginner i need program which multiply 2 real inputs , i
want to know: how can i declare real variables on C ,also i can&amp;#39;t
deal with 8-bit registers R0--R7. 
in ASM language Mov R0,#10 
i need to convert this code to C 
thnx; 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/124584?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2008 13:38:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:967d49c6-8bcd-4c4b-9c6a-ce9900c6f0d2</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
vvv read the pst below vvv&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/124582?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2008 13:28:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d8e5bf5f-803d-41b8-a43b-2f2867d2729a</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
vvv the answer is entered before your question vvv&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/113830?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2008 13:09:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6b20b640-3d15-4673-8edb-5d96a5fc0490</guid><dc:creator>Basem Mahmoud</dc:creator><description>&lt;p&gt;&lt;p&gt;
i study programming micro using c well;&lt;br /&gt;
but if i declare any i/p as double or float&lt;br /&gt;
error: file or path not found&lt;br /&gt;
file C:\keil\c52\lib\c51fbs.lib&lt;br /&gt;
#include&amp;lt;reg52.h&amp;gt; if i write&lt;br /&gt;
int a; ok&lt;br /&gt;
but double a; or float a;&lt;br /&gt;
error appear&lt;br /&gt;
plz give me the start&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/100511?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2008 11:44:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:46baff38-e3fa-4345-bc12-b3634fb73aaa</guid><dc:creator>Neil Kurzmam</dc:creator><description>&lt;p&gt;&lt;p&gt;
&amp;quot;an error appear.&amp;quot;&lt;br /&gt;
What does it say? keil for the 8051 does not support double use
float. And if you have the Evaluation Version Look at the
limitations.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/100504?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2008 04:44:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a6914938-94b6-4a2f-b0f9-a772c535054b</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;i need to store data in these register&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
No, you quite certainly don&amp;#39;t. R0 to R8 are no place to store
something. Not in the middle of C code, anyway, because the compiled
code needs those registers for itself.&lt;/p&gt;

&lt;p&gt;
You need to &lt;b&gt;stop&lt;/b&gt; running head-first into the wall and go
back to the chapter &amp;quot;What&amp;#39;s a door, and why might I find it
useful?&amp;quot;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/100510?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2008 04:31:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b88d5903-ab27-4d77-89c0-6e88fbc94fd4</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
So, what would be a good way to find out in which file sin(x) is
declared?&lt;/p&gt;

&lt;p&gt;
- Searching through the header files in the Keil directory?&lt;br /&gt;
- Checking the manual?&lt;br /&gt;
- Asking on a forum?&lt;/p&gt;

&lt;p&gt;
What do you expect would happen if everybody who had a question
always selected the &amp;quot;Asking on a forum&amp;quot; solution? Do you think anyone
would get anything done then? You could have found the answer
yourself several hours ago.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;an error appear.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I don&amp;#39;t know if this should be taken as a question. If it was,
don&amp;#39;t you think it would be better to specify exactly what error you
received?&lt;/p&gt;

&lt;p&gt;
Note that embedded processors doesn&amp;#39;t like floating point so very
much. Most embedded processors does not have hardware support for
floating point, so they have to emulate it - just as if you have to
manage with a pen and paper instead of having a pocket
calculator.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;i need to store data in these register&lt;/i&gt;&lt;br /&gt;
Don&amp;#39;t write &amp;quot;I need to...&amp;quot;. Write &lt;b&gt;why&lt;/b&gt; you need to... If you
don&amp;#39;t write any motivation, we will not feel motivated to answer -
and we will be unable to know if you are un the right track or not.
Most people wo &amp;quot;need to&amp;quot; on this forum are basing their questions on
an incorrect assumption.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/76182?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2008 04:10:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:840c7791-3a20-4778-b082-d5cc8c5ca7e9</guid><dc:creator>Basem Mahmoud</dc:creator><description>&lt;p&gt;&lt;p&gt;
ok; i want to use register but i haven&amp;#39;t code to write&lt;br /&gt;
i need to store data in these register&lt;br /&gt;
if u know send me&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/76181?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2008 04:07:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c0de657e-c57a-408d-855f-8040973e8592</guid><dc:creator>Basem Mahmoud</dc:creator><description>&lt;p&gt;&lt;p&gt;
i know what u say;i mean x=4.569;y=5.369;&lt;br /&gt;
res=x*y;&lt;br /&gt;
if i wrote:&lt;br /&gt;
double res;&lt;br /&gt;
an error appear.&lt;br /&gt;
in the beginning of program i wrote&lt;br /&gt;
#include&amp;lt;reg52.h&amp;gt;&lt;br /&gt;
i want to know which header file is used to declare&lt;br /&gt;
double i/p &amp;amp; o/p&lt;br /&gt;
also math. functions as sin(x) ,..etc&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/49706?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2008 02:43:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:41e5915c-c4cc-45ff-aab9-730694df67bf</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;i need to convert this code to C&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;No.&lt;/b&gt; You need to stop thinking in assembly language, and
start to actually learn C. &amp;quot;Converting&amp;quot; assembly code patterns is no
way to write C programs.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/49705?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2008 02:34:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:463cfc8c-cd15-4ea3-ba66-e9f4bf852d9b</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
Mahmoud,&lt;br /&gt;
Look, forgive me for saying this, but it sounds as if you have opened
a text book (which is a good thing) and quoted from it without
understanding what it all means, so you might need to learn C first.
Either way, if you do this:&lt;/p&gt;

&lt;pre&gt;
int res, x = 4, y = 2 ;

res = x * y ;
&lt;/pre&gt;

&lt;p&gt;
you have multiplied 2 numbers.&lt;/p&gt;

&lt;p&gt;
If I were you, I would&amp;#39;nt try to &amp;quot;deal&amp;quot; with assembly until you
manage to understand (and master) the basics.&lt;br /&gt;
Good luck.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i'm a beginner i need program which multiply 2 real inputs</title><link>https://community.arm.com/thread/49704?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2008 02:34:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c168e4c6-56ab-4d5e-a368-d7e631114929</guid><dc:creator>jo aler</dc:creator><description>&lt;p&gt;&lt;p&gt;
I DONT WANY TO BE ABRASIVE, BUT YOURE USING A LOT OF CODE FOR THE
JOB.......&lt;br /&gt;
NEVER MIND IF ITS LEDS OR LCDS. WITH LESS OUTPUT HEX-CODE YOU COULD
DRIVE THE OUTPUT WITH A UART TO COMUNICATE WITH RS482 TO THE PC.&lt;br /&gt;
I REPEAT MY FORMER GENERIC CODE
(BASIC,C,FORTRAN,FORTH,COBOL,LIST,ORCAD,ASM,PASCAL,DELPHY OR
WHATEVER):&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>