giannissam
04-06-2009, 01:54 AM
Hello, i've been trying to convert a string to bytes in this way
say the string is "jj"
in binary its
01101010 01101010
i want to make
00000000 00000000
10000000 10000000
10000000 10000000
00000000 00000000
10000000 10000000
00000000 00000000
10000000 10000000
00000000 00000000
i made a code (attached) but somehow when it gets to the second j the bin is diferent. (By the way in my code i havent masked the bin numbers so i can see the process)
say the string is "jj"
in binary its
01101010 01101010
i want to make
00000000 00000000
10000000 10000000
10000000 10000000
00000000 00000000
10000000 10000000
00000000 00000000
10000000 10000000
00000000 00000000
i made a code (attached) but somehow when it gets to the second j the bin is diferent. (By the way in my code i havent masked the bin numbers so i can see the process)