1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Decimal to Binary Conversion Help

Discussion in 'Assembly Language Programming (ALP) Forum' started by yayo, Feb 21, 2008.

  1. yayo

    yayo New Member

    Feb 21, 2008
    Likes Received:
    Trophy Points:
    Hey guys,

    Im currently a final year in colorado needing help with ALP.
    Im trying to create a simple program that has aa number of functions, the problem im having is converting a input number from a user to binary form.

    I know the conversion rule (divde by 2, if there is a remainder then wirte 1, if not 0, keep doing until the answer is 0 then read it backwards) and it is simple in java but im having problems gettign my head around it in ALP.

    I have currently figured out how to ask for a prompt from the user,
    Read the usr input and then store that input.

    For some reason i am constantly thinking i am going to need a loop in order to carry this out. Am i correct?

    Please help, it would really be appreciated.

Share This Page