bit.bin2asciiΒΆ
ascii := the ascii representation of the value of bin.
ascii is bit[:8], bin is a bit.
SignatureΒΆ
def bin2ascii ascii, bin { ... }
Defined in bit/casting.fj β lines 21β25 (view on GitHub).
ComplexityΒΆ
Time:
9@-7Space:
9@-7
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def bin2ascii ascii, bin {
.zero 8, ascii
.not 2, ascii + 4*dw // ascii = 0x30
.xor ascii, bin
}
Depends onΒΆ
β Previous: bit.str
Next: bit.dec2ascii β