From 15de88cf82c187635c1989e91bfa639a10304066 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 20:08:07 -0300 Subject: canim: a column of text as an experiment; the disassembly tied to the stack From the user. A scene may set its text in a column beside the panes a beat is about: col.beat names the panes and their rows, where the text is placed (beside, below, above, or on a drawing) and what it is level with; panes the beat leaves out fold to their title bars on a shelf, their changes struck there. Tried as two scenes beside the originals: the call followed down (column) and a bubble on sort's rings (column_sort). annotation = .tied names the word an instruction touched and draws a touch to its stack row; offsets count from the frame's base; rsp's pin travels with its amount before the stack follows; .whole keeps the full chain. carry = .arrow draws a value's way between memory and a register. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- anim/scenes/zoom.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'anim/scenes/zoom.zig') diff --git a/anim/scenes/zoom.zig b/anim/scenes/zoom.zig index 426d3a3..8164b3b 100644 --- a/anim/scenes/zoom.zig +++ b/anim/scenes/zoom.zig @@ -36,8 +36,11 @@ fn frame(s: *anim.Frame) void { const joins = ctx.ties(s); canim.establish(s, .{ ctx.clock, ctx.registers, ctx.stack, ctx.backtrace, ctx.source, ctx.disasm, joins }); says.line(s, "A line of C is a handful of instructions.\nThis one calls `fib(n-1)`: follow it down."); - // The CPU's level: an instruction a step. The argument is worked out in `rdi`. + // The CPU's level: an instruction a step. The argument is worked out in `rdi`, + // `n` carried into it from its word first (`carry`, for this beat). + at.levels.carry = .arrow; at.walk(s, .moment, call.enter - 1); + at.levels.carry = .off; says.line(s, "`call` writes eight bytes on the stack: the way back."); // The stack holds still under the camera, set before it moves: six free -- cgit v1.3