diff options
Diffstat (limited to 'anim/scenes/zoom.zig')
| -rw-r--r-- | anim/scenes/zoom.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/anim/scenes/zoom.zig b/anim/scenes/zoom.zig index 6eb3248..5ea2346 100644 --- a/anim/scenes/zoom.zig +++ b/anim/scenes/zoom.zig @@ -31,15 +31,15 @@ fn frame(s: *anim.Frame) void { var cam: canim.Camera = .{}; var says: canim.Narrator = .{}; - const joins = canim.ties(s, .{ .cursor = at }); - canim.establish(s, .{ ctx.clock, ctx.source, ctx.disasm, ctx.registers, ctx.stack, ctx.backtrace, joins }); + 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`. at.walk(s, .moment, call.enter - 1); says.line(s, "`call` writes eight bytes on the stack: the way back.\nThe new frame saves `rbp` under them, then its own `n`."); // Nearer, for the bytes: the stack alone, twice the size. - cam.go(s, canim.layout.stack, 2, .{ ctx.source, ctx.disasm, ctx.registers, ctx.backtrace }); + cam.go(s, split.stack, 2, .{ ctx.source, ctx.disasm, ctx.registers, ctx.backtrace }); at.walk(s, .moment, call.enter + 4); cam.back(s, .{ ctx.source, ctx.disasm, ctx.registers, ctx.backtrace }); |
