diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 21:45:12 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 22:10:47 -0300 |
| commit | 479d4914ecd8c7bfea68f9357ace1a4a6d0006ab (patch) | |
| tree | 4ea06494a9deb8bdb28be2fe60a6cbfc3fa55f71 /design/mock | |
| parent | 15de88cf82c187635c1989e91bfa639a10304066 (diff) | |
| download | computeranim-479d4914ecd8c7bfea68f9357ace1a4a6d0006ab.tar.gz computeranim-479d4914ecd8c7bfea68f9357ace1a4a6d0006ab.zip | |
design: the column as a form of the language; the ASan pair and the introduction storyboarded
From the user: the column style is a tool a scene's author can use. It
is a standard form beside the working frame (which stays the default):
for stories of rows going down and back. A scene changes form in a rest,
in a fixed order, about 70 frames each way. Bubbles fit their reading in
their lead and steps; panes change only when the subject moves. The ASan
pair (112 s) uses the pair, then the column while plain runs on alone,
then the pair for the fault; the introduction (123 s) mixes the frame at
x2, the column for the address space and the stack, and text above the
aligned code.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'design/mock')
| -rw-r--r-- | design/mock/49-column-call-480.png | bin | 28172 -> 27010 bytes | |||
| -rw-r--r-- | design/mock/49-column-call.png | bin | 191880 -> 184799 bytes | |||
| -rw-r--r-- | design/mock/49-column-call.svg | 9 | ||||
| -rw-r--r-- | design/mock/50-column-stub-480.png | bin | 29831 -> 27462 bytes | |||
| -rw-r--r-- | design/mock/50-column-stub.png | bin | 196916 -> 187159 bytes | |||
| -rw-r--r-- | design/mock/50-column-stub.svg | 11 | ||||
| -rw-r--r-- | design/mock/51-column-args-480.png | bin | 27318 -> 25766 bytes | |||
| -rw-r--r-- | design/mock/51-column-args.png | bin | 154753 -> 146051 bytes | |||
| -rw-r--r-- | design/mock/51-column-args.svg | 12 | ||||
| -rw-r--r-- | design/mock/52-column-cross-480.png | bin | 26759 -> 24836 bytes | |||
| -rw-r--r-- | design/mock/52-column-cross.png | bin | 166439 -> 158837 bytes | |||
| -rw-r--r-- | design/mock/52-column-cross.svg | 12 | ||||
| -rw-r--r-- | design/mock/53-column-back-480.png | bin | 28740 -> 28013 bytes | |||
| -rw-r--r-- | design/mock/53-column-back.png | bin | 190377 -> 186572 bytes | |||
| -rw-r--r-- | design/mock/53-column-back.svg | 5 | ||||
| -rw-r--r-- | design/mock/54-column-present.png | bin | 419583 -> 410915 bytes | |||
| -rw-r--r-- | design/mock/column.py | 41 |
17 files changed, 39 insertions, 51 deletions
diff --git a/design/mock/49-column-call-480.png b/design/mock/49-column-call-480.png Binary files differindex aa6899a..0916509 100644 --- a/design/mock/49-column-call-480.png +++ b/design/mock/49-column-call-480.png diff --git a/design/mock/49-column-call.png b/design/mock/49-column-call.png Binary files differindex d856574..067f8f2 100644 --- a/design/mock/49-column-call.png +++ b/design/mock/49-column-call.png diff --git a/design/mock/49-column-call.svg b/design/mock/49-column-call.svg index 7fdb518..af8b8e7 100644 --- a/design/mock/49-column-call.svg +++ b/design/mock/49-column-call.svg @@ -300,12 +300,11 @@ <rect x="52.5" y="138.0" width="3.0" height="280.0" fill="#e8c46a"/> <path d="M944.0,408.0 L950.0,408.0 Q956.0,408.0 956.0,414.0 L956.0,569.5 Q956.0,572.0 953.5,572.0 L951.0,572.0" fill="none" stroke="#ff6a4a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> <path d="M946.0,572.0 L953.0,568.0 L953.0,576.0 Z" fill="#ff6a4a"/> -<text x="1000.0" y="221.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">main </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">puts </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">open's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">arguments </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">where </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan></text> -<text x="1000.0" y="275.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">convention </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">says: </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rdi</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">0 </tspan></text> -<text x="1000.0" y="329.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">(O_RDONLY) </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rsi</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> +<text x="1000.0" y="275.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">main </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">puts </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">open's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">arguments </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">registers: </tspan></text> +<text x="1000.0" y="329.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rdi</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">O_RDONLY </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rsi</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> <rect x="984.0" y="368.0" width="812.0" height="134.0" fill="#16245f"/> -<text x="1000.0" y="421.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">call </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">where </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">come </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">back </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to, </tspan></text> -<text x="1000.0" y="475.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">main+45</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">goes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">down </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">open's </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">stub.</tspan></text> +<text x="1000.0" y="421.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">call </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">way </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">back, </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">main+45</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, </tspan></text> +<text x="1000.0" y="475.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">goes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">down </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">stub.</tspan></text> <rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> <rect x="976.0" y="898.0" width="133.9" height="4.0" fill="#e8c46a"/> <text x="1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 7 of 46</text> diff --git a/design/mock/50-column-stub-480.png b/design/mock/50-column-stub-480.png Binary files differindex e5e4657..360c41a 100644 --- a/design/mock/50-column-stub-480.png +++ b/design/mock/50-column-stub-480.png diff --git a/design/mock/50-column-stub.png b/design/mock/50-column-stub.png Binary files differindex 60c3187..d873481 100644 --- a/design/mock/50-column-stub.png +++ b/design/mock/50-column-stub.png diff --git a/design/mock/50-column-stub.svg b/design/mock/50-column-stub.svg index 886dd88..8e2058f 100644 --- a/design/mock/50-column-stub.svg +++ b/design/mock/50-column-stub.svg @@ -302,12 +302,11 @@ <rect x="53.0" y="302.0" width="9.0" height="2.0" fill="#eee6d2"/> <rect x="53.0" y="392.0" width="9.0" height="2.0" fill="#eee6d2"/> <rect x="53.0" y="138.0" width="2.0" height="256.0" fill="#eee6d2"/> -<text x="1000.0" y="323.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">The </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">call </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">where </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">to </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">come </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">back </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">to, </tspan></text> -<text x="1000.0" y="377.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">main+45</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">goes </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">down </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">to </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">open's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">stub.</tspan></text> -<rect x="984.0" y="416.0" width="812.0" height="188.0" fill="#16245f"/> -<text x="1000.0" y="469.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">stub </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">PLT </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">is </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">one </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">jump: </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">it </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">reads </tspan></text> -<text x="1000.0" y="523.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">open@got</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">where </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">loader </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">wrote </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">libc's </tspan></text> -<text x="1000.0" y="577.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">open</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">. </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">It </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">nothing.</tspan></text> +<text x="1000.0" y="323.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">The </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">call </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">way </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">back, </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">main+45</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan></text> +<text x="1000.0" y="377.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">goes </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">down </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">to </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">stub.</tspan></text> +<rect x="984.0" y="416.0" width="812.0" height="134.0" fill="#16245f"/> +<text x="1000.0" y="469.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">stub </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">is </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">one </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">jump </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">through </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">open@got</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">: </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">it </tspan></text> +<text x="1000.0" y="523.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">nothing.</tspan></text> <path d="M984.0,456.0 L950.0,456.0" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> <path d="M945.0,456.0 L952.0,452.0 L952.0,460.0 Z" fill="#9aa6d9"/> <rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> diff --git a/design/mock/51-column-args-480.png b/design/mock/51-column-args-480.png Binary files differindex 193a0e7..7207706 100644 --- a/design/mock/51-column-args-480.png +++ b/design/mock/51-column-args-480.png diff --git a/design/mock/51-column-args.png b/design/mock/51-column-args.png Binary files differindex cc51162..dc5e7a2 100644 --- a/design/mock/51-column-args.png +++ b/design/mock/51-column-args.png diff --git a/design/mock/51-column-args.svg b/design/mock/51-column-args.svg index 276d047..6aaf57d 100644 --- a/design/mock/51-column-args.svg +++ b/design/mock/51-column-args.svg @@ -231,13 +231,11 @@ <rect x="53.0" y="230.0" width="9.0" height="2.0" fill="#eee6d2"/> <rect x="53.0" y="248.0" width="9.0" height="2.0" fill="#eee6d2"/> <rect x="53.0" y="138.0" width="2.0" height="112.0" fill="#eee6d2"/> -<text x="1000.0" y="197.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">The </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">stub </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">PLT </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">is </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">one </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">jump. </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">It </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">reads </tspan></text> -<text x="1000.0" y="251.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">open@got</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">where </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">loader </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">wrote </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">libc's </tspan></text> -<text x="1000.0" y="305.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">open</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> -<rect x="984.0" y="344.0" width="812.0" height="188.0" fill="#16245f"/> -<text x="1000.0" y="397.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">Its </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">last </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">three </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">set </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">kernel's </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">arguments: </tspan></text> -<text x="1000.0" y="451.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">AT_FDCWD </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">rdi</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">257, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">openat's </tspan></text> -<text x="1000.0" y="505.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">number, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">.</tspan></text> +<text x="1000.0" y="251.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">The </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">stub </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">is </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">one </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">jump </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">through </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">open@got</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">: </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">it </tspan></text> +<text x="1000.0" y="305.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">pushes </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">nothing.</tspan></text> +<rect x="984.0" y="344.0" width="812.0" height="134.0" fill="#16245f"/> +<text x="1000.0" y="397.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">Its </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">last </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">three </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">set </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">kernel's </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">arguments, </tspan></text> +<text x="1000.0" y="451.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">openat's </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">number, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">257, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">.</tspan></text> <rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> <rect x="976.0" y="898.0" width="593.0" height="4.0" fill="#e8c46a"/> <text x="1676.0 1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 31 of 46</text> diff --git a/design/mock/52-column-cross-480.png b/design/mock/52-column-cross-480.png Binary files differindex ef5f705..7dc0380 100644 --- a/design/mock/52-column-cross-480.png +++ b/design/mock/52-column-cross-480.png diff --git a/design/mock/52-column-cross.png b/design/mock/52-column-cross.png Binary files differindex c79b82b..eebe049 100644 --- a/design/mock/52-column-cross.png +++ b/design/mock/52-column-cross.png diff --git a/design/mock/52-column-cross.svg b/design/mock/52-column-cross.svg index cd9cef3..6e0a753 100644 --- a/design/mock/52-column-cross.svg +++ b/design/mock/52-column-cross.svg @@ -201,13 +201,11 @@ <rect x="53.0" y="302.0" width="9.0" height="2.0" fill="#eee6d2"/> <rect x="53.0" y="320.0" width="9.0" height="2.0" fill="#eee6d2"/> <rect x="53.0" y="138.0" width="2.0" height="184.0" fill="#eee6d2"/> -<text x="1000.0" y="541.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">Its </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">last </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">three </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">set </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">kernel's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">arguments: </tspan></text> -<text x="1000.0" y="595.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">AT_FDCWD </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rdi</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">257, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">openat's </tspan></text> -<text x="1000.0" y="649.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">number, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> -<rect x="984.0" y="700.0" width="812.0" height="188.0" fill="#16245f"/> -<text x="1000.0" y="753.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">syscall </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">crosses </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">down. </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">The </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">kernel </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">opens </tspan></text> -<text x="1000.0" y="807.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">answers </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">3: </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">file's </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">descriptor, </tspan></text> -<text x="1000.0" y="861.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">.</tspan></text> +<text x="1000.0" y="541.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">Its </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">last </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">three </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">set </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">kernel's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">arguments, </tspan></text> +<text x="1000.0" y="595.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">openat's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">number, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">257, </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> +<rect x="984.0" y="704.0" width="812.0" height="134.0" fill="#16245f"/> +<text x="1000.0" y="757.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">syscall </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">crosses </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">down; </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">kernel </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">opens </tspan></text> +<text x="1000.0" y="811.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">and </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">answers </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">3 </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">.</tspan></text> <rect x="976.0" y="899.0" width="880.0" height="2.0" fill="#3a4a8a"/> <rect x="976.0" y="898.0" width="669.6" height="4.0" fill="#e8c46a"/> <text x="1676.0 1688.0 1700.0 1712.0 1724.0 1736.0 1748.0 1760.0 1772.0 1784.0 1796.0 1808.0 1820.0 1832.0 1844.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 35 of 46</text> diff --git a/design/mock/53-column-back-480.png b/design/mock/53-column-back-480.png Binary files differindex 294b7cd..4ca4faa 100644 --- a/design/mock/53-column-back-480.png +++ b/design/mock/53-column-back-480.png diff --git a/design/mock/53-column-back.png b/design/mock/53-column-back.png Binary files differindex aae5ff1..ffc3719 100644 --- a/design/mock/53-column-back.png +++ b/design/mock/53-column-back.png diff --git a/design/mock/53-column-back.svg b/design/mock/53-column-back.svg index 7292e57..3759984 100644 --- a/design/mock/53-column-back.svg +++ b/design/mock/53-column-back.svg @@ -289,9 +289,8 @@ <rect x="52.5" y="138.0" width="3.0" height="280.0" fill="#e8c46a"/> <path d="M944.0,408.0 L950.0,408.0 Q956.0,408.0 956.0,414.0 L956.0,665.5 Q956.0,668.0 953.5,668.0 L951.0,668.0" fill="none" stroke="#ff6a4a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> <path d="M946.0,668.0 L953.0,664.0 L953.0,672.0 Z" fill="#ff6a4a"/> -<text x="1000.0" y="753.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">syscall </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">crosses </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">down. </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">The </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">kernel </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">opens </tspan></text> -<text x="1000.0" y="807.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">answers </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">3: </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">file's </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">descriptor, </tspan></text> -<text x="1000.0" y="861.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> +<text x="1000.0" y="807.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">syscall </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">crosses </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">down; </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">the </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">kernel </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">opens </tspan></text> +<text x="1000.0" y="861.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">"note" </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">and </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">answers </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">3 </tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">in </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#9aa6d9" font-size="35">rax</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">.</tspan></text> <rect x="984.0" y="344.0" width="812.0" height="188.0" fill="#16245f"/> <text x="1000.0" y="397.0" font-size="40" xml:space="preserve"><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">open</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">'s </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">ret </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">comes </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">straight </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">back </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">to </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">main: </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan></text> <text x="1000.0" y="451.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">stub </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">was </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">a </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">jump, </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">not </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">a </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">call. </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">main </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">keeps </tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">the </tspan></text> diff --git a/design/mock/54-column-present.png b/design/mock/54-column-present.png Binary files differindex e9421e9..91a6f6e 100644 --- a/design/mock/54-column-present.png +++ b/design/mock/54-column-present.png diff --git a/design/mock/column.py b/design/mock/column.py index de00e6f..cf0b8d1 100644 --- a/design/mock/column.py +++ b/design/mock/column.py @@ -361,11 +361,10 @@ def beat_call(g): # the touch, in the column: out of the call row's right rule, down the gutter, onto the stack's rule at its word gen.arrow(g, [(944, at[0x4011a8] + 12), (956, at[0x4011a8] + 12), (956, sy[0] + 12), (946, sy[0] + 12)], VERM, 2, r=6, hl=7, hw=8) - say(g, [(at[0x40119c] + 12, [("main puts open's arguments where the convention says: ", "sans"), ('"note"', "mono"), - (" in ", "sans"), ("rdi", "mono"), (", 0 (O_RDONLY) in ", "sans"), ("rsi", "mono"), - (".", "sans")], None), - (at[0x4011a8] + 12, [("The call pushes where to come back to, ", "sans"), ("main+45", "mono"), - (", and goes down to open's stub.", "sans")], None)]) + say(g, [(at[0x40119c] + 12, [("main puts open's arguments in registers: ", "sans"), ('"note"', "mono"), (" in ", "sans"), + ("rdi", "mono"), (", O_RDONLY in ", "sans"), ("rsi", "mono"), (".", "sans")], None), + (at[0x4011a8] + 12, [("The call pushes the way back, ", "sans"), ("main+45", "mono"), + (", and goes down to the stub.", "sans")], None)]) column_clock(g, 7, 46) @@ -406,11 +405,10 @@ def beat_stub(g): stack_panel(g, ys_, n, 38, 0x7fffffffeca8, 0x7fffffffeca8, 0x7fffffffed00, {0x7fffffffeca8: {1: "tick"}}, [("open@plt", 0x7fffffffeca8)], base=("rsp", 0x7fffffffeca8)) C.thread(g, ys, [(at[0x40119c], at[0x4011a8] + ROW)], VELLUM, 2) - say(g, [(at[0x4011a8] + 12, [("The call pushes where to come back to, ", "sans"), ("main+45", "mono"), - (", and goes down to open's stub.", "sans")], None), - (at[0x401070] + 12, [("The stub in the PLT is one jump: it reads ", "sans"), ("open@got", "mono"), - (", where the loader wrote libc's ", "sans"), ("open", "mono"), - (". It pushes nothing.", "sans")], at[0x401070])]) + say(g, [(at[0x4011a8] + 12, [("The call pushes the way back, ", "sans"), ("main+45", "mono"), + (", and goes down to the stub.", "sans")], None), + (at[0x401070] + 12, [("The stub is one jump through ", "sans"), ("open@got", "mono"), + (": it pushes nothing.", "sans")], at[0x401070])]) column_clock(g, 8, 46) @@ -443,10 +441,10 @@ def beat_args(g): "rsi": {0: "tick"}}, QUIET) M.strip(False) C.thread(g, ys, [(at[0x4011a8], at[0x4011a8] + ROW)], VELLUM, 2) - say(g, [(at["open@plt"] + 12, [("The stub in the PLT is one jump. It reads ", "sans"), ("open@got", "mono"), - (", where the loader wrote libc's ", "sans"), ("open", "mono"), (".", "sans")], None), - (at[L + 0x110fb6] + 12, [("Its last three set the kernel's arguments: AT_FDCWD in ", "sans"), ("rdi", "mono"), - (", and 257, openat's number, in ", "sans"), ("rax", "mono"), (".", "sans")], None)]) + say(g, [(at["open@plt"] + 12, [("The stub is one jump through ", "sans"), ("open@got", "mono"), + (": it pushes nothing.", "sans")], None), + (at[L + 0x110fb6] + 12, [("Its last three set the kernel's arguments, and openat's number, 257, in ", "sans"), + ("rax", "mono"), (".", "sans")], None)]) column_clock(g, 31, 46) @@ -482,12 +480,10 @@ def beat_cross(g, bubbles=True): M.strip(False) C.thread(g, ys, [(at[0x4011a8], at[0x4011a8] + ROW)], VELLUM, 2) if bubbles: - say(g, [(at[L + 0x110fb6] + 12, [("Its last three set the kernel's arguments: AT_FDCWD in ", "sans"), - ("rdi", "mono"), (", and 257, openat's number, in ", "sans"), ("rax", "mono"), - (".", "sans")], None), - (at["kernel"] + 12, [("syscall", "mono"), (" crosses down. The kernel opens ", "sans"), ('"note"', "mono"), - (" and answers 3: the file's descriptor, in ", "sans"), ("rax", "mono"), - (".", "sans")], None)]) + say(g, [(at[L + 0x110fb6] + 12, [("Its last three set the kernel's arguments, and openat's number, 257, in ", "sans"), + ("rax", "mono"), (".", "sans")], None), + (at["kernel"] + 12, [("syscall", "mono"), (" crosses down; the kernel opens ", "sans"), ('"note"', "mono"), + (" and answers 3 in ", "sans"), ("rax", "mono"), (".", "sans")], None)]) column_clock(g, 35, 46) return at @@ -514,9 +510,8 @@ def beat_back(g): C.thread(g, ys, [(at[0x40119c], at[0x4011ad] + ROW)]) gen.arrow(g, [(944, at[0x4011ad] + 12), (956, at[0x4011ad] + 12), (956, sy[3] + 12), (946, sy[3] + 12)], VERM, 2, r=6, hl=7, hw=8) - say(g, [(at[0x4011ad] + 12 + 400, [("syscall", "mono"), (" crosses down. The kernel opens ", "sans"), ('"note"', "mono"), - (" and answers 3: the file's descriptor, in ", "sans"), ("rax", "mono"), - (".", "sans")], None), + say(g, [(at[0x4011ad] + 12 + 400, [("syscall", "mono"), (" crosses down; the kernel opens ", "sans"), ('"note"', "mono"), + (" and answers 3 in ", "sans"), ("rax", "mono"), (".", "sans")], None), (at[0x4011a8] + 12, [("open", "mono"), ("'s ", "sans"), ("ret", "mono"), (" comes straight back to main: the stub was a jump, not a call. main keeps the answer in ", "sans"), ("f", "mono"), (".", "sans")], None)]) |
