bit/casting.fj

———- String:

View source on GitHub

Macros

bit

  • bit.strused to initialize a string, like:   bit.str "Hello, World!\n"

  • bit.bin2ascii — ascii := the ascii representation of the value of bin.

  • bit.dec2ascii — ascii := the ascii representation of the value of dec.

  • bit.hex2ascii — ascii := the ascii representation of the value of hex (digits & capital-letters).

  • bit.ascii2bin — if ascii is ‘0’/’1’, set bit to 0/1 (end error=0). else, set error=1.

  • bit.ascii2dec — if ascii is ‘0’-‘9’, set dec to that decimal digit value (end error=0). else, set error=1.

  • 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.