Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Binary into char

Name: Anonymous 2009-02-08 20:18

/prog/,

I have traveled far and wide to seek your wisdom. I'm currently writing a program in assembly that involves some bit manipulation. Basically what I need to do figure out is how to store binary data into a char (8 bits). For example, how would I store 0000 0001 into a char variable?

Thank you kind /prog/

Name: Anonymous 2009-02-08 20:55

Assembly doesn't have data types like char, it's all just bits, bytes, words, nibbles, etc...

To convert a binary number to ASCII, first convert to BCD, then OR each digit with 30h.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List