diff options
Diffstat (limited to 'anim/scenes/column.zig')
| -rw-r--r-- | anim/scenes/column.zig | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/anim/scenes/column.zig b/anim/scenes/column.zig index b1a8df7..db211a7 100644 --- a/anim/scenes/column.zig +++ b/anim/scenes/column.zig @@ -55,40 +55,40 @@ fn frame(s: *anim.Frame) void { // C2: the arguments, beside the rows that set them. col.beat(s, .{ .panes = &.{ .{ .source, 3 }, .{ .disasm, 11 }, .{ .registers, regs } }, - .say = "main puts open's arguments where the convention says: \"note\" in `rdi`, 0 (O_RDONLY) in `rsi`.", + .say = "main puts open's arguments in registers: \"note\" in `rdi`, O_RDONLY in `rsi`.", .notes = &.{ .{ .band, "none yet" }, .{ .view, "no call crossing" } }, }); cur.walk(s, .moment, stub - 1); // C3: the call goes down; the stack under the descent. col.beat(s, .{ .panes = &.{ .{ .source, 3 }, .{ .disasm, 11 }, .{ .stack, rest } }, - .say = "The call pushes where to come back to, `main+45`, and goes down to open's stub.", + .say = "The call pushes the way back, `main+45`, and goes down to the stub.", }); canim.descent.step(cur, s, .moment); s.wait(t.phrase_rest); // C4: the stub's jmp: the stack holds still. - col.beat(s, .{ .say = "The stub in the PLT is one jump: it reads `open@got`, where the loader wrote libc's `open`. It pushes nothing.", .panes = &.{ .{ .source, 3 }, .{ .disasm, 11 }, .{ .stack, rest } } }); + col.beat(s, .{ .say = "The stub is one jump through `open@got`: it pushes nothing.", .panes = &.{ .{ .source, 3 }, .{ .disasm, 11 }, .{ .stack, rest } } }); canim.descent.step(cur, s, .moment); s.wait(t.phrase_rest); // C5: the wrapper at a run, the bubble level with its window's head. col.beat(s, .{ - .panes = &.{ .{ .source, 3 }, .{ .disasm, 11 }, .{ .stack, rest } }, + .panes = &.{ .{ .source, 2 }, .{ .disasm, 11 }, .{ .stack, rest } }, .say = "libc's `open` is a wrapper: a few lines of C around the one instruction that calls the kernel.", .level = .{ .head = "open" }, }); cur.hurry(s, .moment, crossing - 3, .{}); // C6: its last three, beside the registers they set. col.beat(s, .{ - .panes = &.{ .{ .source, 3 }, .{ .disasm, 11 }, .{ .registers, regs } }, - .say = "Its last three set the kernel's arguments: AT_FDCWD in `rdi`, and 257, openat's number, in `rax`.", + .panes = &.{ .{ .source, 2 }, .{ .disasm, 11 }, .{ .registers, regs } }, + .say = "Its last three set the kernel's arguments, and openat's number, 257, in `rax`.", .stem = .none, - .notes = &.{ .{ .band, "none yet" }, .{ .view, "`\"note\"`" } }, + .notes = &.{ .{ .band, "none yet" }, .{ .view, "`\"note\"` handed in" }, .{ .stack, "open's frame, 16 words" } }, }); cur.walk(s, .moment, crossing); // C7: the crossing, the kernel at the descent's floor. col.beat(s, .{ .panes = &.{ .{ .source, 3 }, .{ .disasm, 24 } }, - .say = "`syscall` crosses down. The kernel opens \"note\" and answers 3: the file's descriptor, in `rax`.", + .say = "`syscall` crosses down; the kernel opens \"note\" and answers 3 in `rax`.", .level = .floor, .stem = .none, .notes = &.{ .{ .band, "none yet" }, .{ .view, "`\"note\"`" } }, |
