Full_add_flat.r8asm and full_add_flat_spaced.r8asm had their comments turned into question marks: they were written through a PowerShell Set-Content with ASCII encoding, which cannot represent Chinese and substitutes '?'. Rewritten as UTF-8, with the comments saying what the files are for. Both still assemble from cache (95 characters) and still produce the same tape, which is the point of the layout free metric. A scan of the whole tree for '???' now comes back empty.
23 lines
471 B
Plaintext
23 lines
471 B
Plaintext
%include "asm/lib.r8asm"
|
|
|
|
; 同一个 metric flat 块,只是额外写了 layout 0 2 4 6 8 10。
|
|
; flat 不看布局,所以它命中 full_add_flat.r8asm 的同一份缓存,发射出完全相同的纸带
|
|
; —— 这正是"步长无关、可跨调用点复用"的证据。
|
|
%synth fulladd_flat
|
|
params 6
|
|
map 0 1 1 2 1 2 2 3
|
|
layout 0 2 4 6 8 10
|
|
metric flat
|
|
%endsynth
|
|
|
|
.var A 0
|
|
.var B 1
|
|
.var Ci 2
|
|
.var S 3
|
|
.var Co 4
|
|
.var T 5
|
|
|
|
fulladd_flat A B Ci S Co T
|
|
output S
|
|
output Co
|