bit/output.fj

View source on GitHub

Macros

bit

  • bit.output — outputs the bit ‘x’.

  • bit.print/1 — outputs a byte from x[:8] (a bit vector. from lsb to msb).

  • bit.print/2 — outputs n bytes from x[:8n] (a bit vector. from lsb to msb).

  • bit.print_str — Prints the first n-chars of the string at x[: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 — prints x[:n] as n ascii-characters (‘0’s and ‘1’s, lsb first).

  • bit.print_hex_uint — print x[:n] as an unsigned hexadecimal number, without leading zeros (digits & capital-letters).

  • bit.print_hex_int — print x[:n] as a signed hexadecimal number, without leading zeros (digits & capital-letters).

  • bit.print_dec_uint — prints x[:n] as an unsigned decimal number (without leading zeros).

  • bit.print_dec_int — prints x[:n] as a signed decimal number (without leading zeros).

bit._

  • bit._.print_str_one_char — Print one byte from a null-terminated string; jumps to end when it hits \0. Inner loop of bit.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 of bit.print_hex_uint.

bit.print_dec_uint