Files
R8Forge/asm
dsh 6e8e33e455 test.r8asm now multiplies as well as adds
The file was the library smoke test: it set up a few cells, called raw_add and
printed five values.  It now also calls clb_mul and prints the two product bytes,
so one tape exercises both of the expensive paths and the self check runs a
result rather than only an assembly.

    127 + 130 = 257        -> S = 1, Co = 1
    200 * 200 = 40000      -> PL = 0x40 = 64, PH = 0x9C = 156
    whole tape             5417 characters (was 1666)

Both interpreters agree on `out 127 130 0 1 1 64 156`: r8forge_derive from the
source and r8forge_tape_run from the assembled tape, 427343 steps.

The multiply half lives at cells 16 and up so it cannot disturb the add half, and
the file's existing cell layout is untouched.
2026-11-07 10:15:58 +08:00
..