Reverse Bits FIXED by Hendrik

while""do n=io.read(1):byte()o=0 for i=1,8 do o=o*2+n%2;n=(n-n%2)/2 end io.write(("").char(o))end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page