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