Files
R8Forge/.r8forge_cache
dsh 7d259b1c6c Rename the two different 'CELL_SIZE's so they stop being confused
There were two unrelated things under one name:

  r8asm::ast::CELL_BITS   the machine word width in bits, a run time number
                          (import_file(path, 8)), used by %rep and the .xor
                          argument masking
  r8veritas<PARAMS>       how many parameter cells a synth block has, a
                          compile time template argument selected by 'params N'

The first is now CELL_BITS, the second PARAMS.  What a .r8asm program sees does
not change: _CELL_SIZE / _CELL_MAX / _ROL_STEP keep their names, because
lib.r8asm uses them.

Answering the actual question along the way: the machine word width is a run
time parameter (import_file's second argument, hardcoded to 8 by the CLI), not a
template argument -- the comment in r8asm.hh even apologises for that.  The
synth block's 'params N' is the other one, and only that goes through the
template switch (1..8).

The first attempt at the rename also rewrote the _CELL_SIZE string used by %rep
into _CELL_BITS, so the lookup threw and the assembler died with a fastfail on
any file containing .xor or %rep.  Caught by regressing test.r8asm (exit
0xC0000409, no tape); the string is restored and asm/test.r8asm is back to 1666
characters with all seven blocks cached.
2026-11-06 20:14:49 +08:00
..