MEM_SIZE and CELL_SIZE were compile time constants: 256 cells of 8 bits, with
rot8_data pinned to uint8_t. Both now come from a rot8_config that a machine
takes a copy of when it is created:
rot8_config cfg = {4096, 16}; /* cells, bits per cell */
rot8_config_apply(&cfg); /* machines from now on */
rot8_test --mem 4096 --cell 16 --dump tapes/wave.rot8
8, 16 and 32 bit cells are supported. ROR rotates inside the configured width
(four rotations of a set bit give 0x10, 0x1000 and 0x10000000), FLB, BIZ and RNZ
still work on the low bit, and INP masks what it is given (70000 becomes 4464 in
a 16 bit cell and 112 in an 8 bit one). rot8_data is uint32_t now so that a
cell holds the widest case.
The tape is a ring: stepping off either end lands on the other, which is what
makes a short tape safe to watch and matches what ROR already does inside a
cell.
The view follows the geometry. A cell takes 2, 4 or 8 hex digits and a row
holds 16, 8 or 4 of them, so the frame stays 56 characters wide; wider cells get
a nibble grouped bit string instead of one column per bit. A tape longer than
16 rows is drawn as a window around the pointer, with its range on the last
line.
Nothing changes for the default geometry: --dump output for and, or,
full_adder, wave and test is byte identical to before, and so is plain OUT
output. The places that printed a cell with %d/%u print unsigned long now, so a
32 bit cell cannot come out negative.