This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i'm a beginner i need program which multiply 2 real inputs

hi, i'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't deal with 8-bit registers R0--R7.
in ASM language Mov R0,#10
i need to convert this code to C
thnx;

Parents
  • So, what would be a good way to find out in which file sin(x) is declared?

    - Searching through the header files in the Keil directory?
    - Checking the manual?
    - Asking on a forum?

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

    an error appear.

    I don't know if this should be taken as a question. If it was, don't you think it would be better to specify exactly what error you received?

    Note that embedded processors doesn'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.

    i need to store data in these register
    Don't write "I need to...". Write why you need to... If you don'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 "need to" on this forum are basing their questions on an incorrect assumption.

Reply
  • So, what would be a good way to find out in which file sin(x) is declared?

    - Searching through the header files in the Keil directory?
    - Checking the manual?
    - Asking on a forum?

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

    an error appear.

    I don't know if this should be taken as a question. If it was, don't you think it would be better to specify exactly what error you received?

    Note that embedded processors doesn'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.

    i need to store data in these register
    Don't write "I need to...". Write why you need to... If you don'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 "need to" on this forum are basing their questions on an incorrect assumption.

Children