bit/output.fj¶
Macros¶
bit¶
bit.output— outputs the bit ‘x’.bit.print/1— outputs a byte fromx[:8](a bit vector. from lsb to msb).bit.print/2— outputs n bytes fromx[:8n](a bit vector. from lsb to msb).bit.print_str— Prints the first n-chars of the string atx[:8n], or until reaches the first'\0'(the earlier).bit.print_as_digit/1— prints the ascii character ‘0’/’1’, based on x’s value.bit.print_as_digit/2— printsx[:n]as nascii-characters(‘0’s and ‘1’s, lsb first).bit.print_hex_uint— printx[:n]as an unsigned hexadecimal number, without leading zeros (digits &capital-letters).bit.print_hex_int— printx[:n]as a signed hexadecimal number, without leading zeros (digits &capital-letters).bit.print_dec_uint— printsx[:n]as an unsigned decimal number (without leading zeros).bit.print_dec_int— printsx[:n]as a signed decimal number (without leading zeros).
bit._¶
bit._.print_str_one_char— Print one byte from a null-terminated string; jumps toendwhen it hits\0. Inner loop ofbit.print_str.
bit.print_hex_uint¶
bit.print_hex_uint.print_digit— Print one hex digit, but only after the first non-zero digit has been seen (suppresses leading zeros). Inner loop ofbit.print_hex_uint.
bit.print_dec_uint¶
bit.print_dec_uint.div10_step— One step insidebit.print_dec_uint: dividessrcby 10, stashes the remainder as an ASCII digit, and tripschar_flagto make this …bit.print_dec_uint.print_char— if char_flag: print the ascii representation of the decimal digitascii4[:4].