Decimal to Binary Conversion Help

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

  1. yayo

    yayo New Member

    Joined:
    Feb 21, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice