Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

long string input then convert it to binary?

How can I long string input then convert it to binary

assembly language

Comments

  • BitByBit_ThorBitByBit_Thor Member Posts: 2,444
    : How can I long string input then convert it to binary
    :
    : assembly language
    :
    [color=Blue]
    Edit: Nvm, misread the date of the original post :P[/color]

    How to get input is platform dependant.
    To convert a DWORD to a binary string:
    There are several instructions that could be used. The core of it is looping through the bits of the number. Either use right-bitshift by 1 and check through flags if a 1 or 0 was pushed off. The other possibility is to use bittest.
    In either way you'll have to build the string. Luckily, a DWORD has a fixed size, so you know exactly how much memory you need to reserve.

    I hope this'll get you going. If you encounter problems during coding post your question here as a reply and we'll help you further.
    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.