bit.ascii2hex¶
if ascii is '0'-'9'/'a'-'f'/'A'-'F', set hex to that hexadecimal digit value (end error=0). else, set error=1.
ascii is bit[:8], hex in bit[:4], and error(output-param) is a bit.
Signature¶
def ascii2hex error, hex, ascii @ decimal_ascii_msh, uppercase_hexadecimal_ascii_msh, lowercase_hexadecimal_ascii_msh, return_error, check_uppercase_hex, check_lowercase_hex, dec_first_check, hex_first_check, hex_second_check, copy_decimal_value, copy_hexadecimal_value, nine4, seven3, two3, end { ... }
Defined in bit/casting.fj — lines 120–167 (view on GitHub).
Complexity¶
Time:
53@+86Space:
53@+86
See the complexity glossary for what @, w, dw, dbit, n mean.