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
  • Mahmoud,
    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:

    int res, x = 4, y = 2 ;
    
    res = x * y ;
    

    you have multiplied 2 numbers.

    If I were you, I would'nt try to "deal" with assembly until you manage to understand (and master) the basics.
    Good luck.

Reply
  • Mahmoud,
    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:

    int res, x = 4, y = 2 ;
    
    res = x * y ;
    

    you have multiplied 2 numbers.

    If I were you, I would'nt try to "deal" with assembly until you manage to understand (and master) the basics.
    Good luck.

Children