summaryrefslogtreecommitdiff
path: root/design/motion.md
diff options
context:
space:
mode:
Diffstat (limited to 'design/motion.md')
-rw-r--r--design/motion.md36
1 files changed, 30 insertions, 6 deletions
diff --git a/design/motion.md b/design/motion.md
index c33a13e..065ee86 100644
--- a/design/motion.md
+++ b/design/motion.md
@@ -462,7 +462,8 @@ the frame saying what the digits say.
| --- | --- | --- |
| to a line 1 to 8 rows away, in view | 12, and 2 a row beyond the first, 24 at most | slides, `standard`; the number appears in the plaque when it lands |
| a call, a return, more than 8 rows | 6 out, 6 in, the in starting as the out ends | the old place takes the trail's first colour |
-| to a line out of view | 24 before the mark moves | the text scrolls by whole lines, `glide`; never a cut |
+| to a line out of view, within a window's height | 24 before the mark moves | the text scrolls by whole lines, `glide`; never a cut |
+| to a line farther than that (another function, line 42 290 after 80 895) | 12 out, 12 in, before the mark moves | the window fades through: scrolled, it would only blur |
The trail shifts without animation.
@@ -474,7 +475,7 @@ arrives.
| Frames | |
| --- | --- |
| 0 to 12 | fire on the line |
-| 18, 24, 30, 36 | `rax`, `rdi`, `rsi`, `rdx` framed as read, 6 f each |
+| 18, 24, 30, 36 | `rax`, `rdi`, `rsi`, `rdx` framed as read, 6 f each: those that hold the argument at the stop shown, and no other |
| 48 to 72 | the crossing arrow draws down from the registers through the line, `standard` |
| 60 to 72 | the last call's name and rows fade out, `exit` |
| 72 to 84 | this call's name fades in, rising 8 units |
@@ -482,16 +483,20 @@ arrives.
| 102 to 120 | its card pushes on the kernel's list |
| 120 to 144 | a flow draws from the kernel up to `buf` |
| 144 to 176 | the 16 bytes strike 2 f apart; no pulse |
+| 180 to 186 | the `returns` row takes the value: the kernel answers before the answer travels |
| 186 to 210 | the arrow back draws up |
-| 198 to 210, 210 | arm, strike: `rax` |
-| 216 | the `returns` row takes the value |
-| 222 to 234, 234 | arm, strike: the word the line stores the result in (`n = read(…)`), when it does |
+| 198 to 210, 210 | arm, strike: `rax`, as the arrow lands |
+| 216, 222, … | the other registers the step changed (those the call clobbers, rcx and r11; those the wrapper restored), 6 f apart; then pins and links |
+| 222 to 234, 234 | arm, strike: the word the line stores the result in (`n = read(…)`), when it does, after the registers |
| 234 to 270 | hold |
| 270 to 282 | advance |
| 282 to 306 | rest |
The result is stored only after the kernel has given it: `returns` has
-the value before the local does, never the other way round.
+the value before rax, and rax before the local, never the other way
+round. A step that makes more than one call (a continue through a
+library) is not a crossing: the kernel's list takes the calls, oldest
+first, 2 f apart, the newest decoded, and the step is a `continue`.
For `write` the work runs the other way: the user's bytes framed as read
(120 to 126), a flow down (126 to 150), the kernel's cells filling 2 f
@@ -499,6 +504,25 @@ apart. A call with no work (`close`) goes from 120 straight to the arrow
back: 3.7 s. Nothing on the kernel's side changes before frame 60: the
kernel does not know the call until it has crossed.
+### A continue
+
+A stop far from the last: a breakpoint hit, thousands of instructions on.
+The levels are the cascade's; what is in them is not one write each.
+
+| Frames | |
+| --- | --- |
+| 0 to 12 | fire on the line the program left from |
+| 18 to 18 + 2n + 6 | the n registers that changed strike in a wave, top to bottom in pwndbg's order, 2 f apart; the fill in over 6 f; no arm, no pulse |
+| then 18 f | memory: the stack's window scrolls to the new frame (24 f) when that is within six slots, else fades out (12 f) and in (12 f) with no marks; a dump the scene keeps follows its region the same way |
+| with it | the backtrace: frames that end fade out (12 f); frames both stops share slide to their new depth (24 f, `glide`); new ones fade in (12 f) |
+| then 18 f | the idea: the lens's drawing reacts, or a lens the scene brings comes in |
+| 36 f after the last strike | hold |
+| 12 | the advance: the mark jumps (6 out, 6 in), the source and disassembly fading through first when the new line is farther than a window |
+| 24 | rest; the clock's gold for every moment passed fades in at once |
+
+A dozen registers struck on one frame is a flash that says only "a lot";
+the wave says it in about 0.6 s and lets the eye run down the panel with it.
+
### A swap
The compare in the step before is its anticipation: both cells framed as