diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 12:01:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 12:07:12 -0300 |
| commit | af2d2cfdcdf5976f06fbcc4b1f8507f0b7d4af89 (patch) | |
| tree | eb455143013fa1b1278ae246676153205d9a3f17 /design/mock/03-syscall-write.svg | |
| parent | a0ca9a0bfa76cd2d04502b7f341cba5153f51899 (diff) | |
| download | computeranim-af2d2cfdcdf5976f06fbcc4b1f8507f0b7d4af89.tar.gz computeranim-af2d2cfdcdf5976f06fbcc4b1f8507f0b7d4af89.zip | |
design: the visual system canim follows, with eight mock frames
Lapis page and vellum ink; a role is a form as well as a colour (current,
write, read, pointer, allocated, freed, fault, kernel); panels as acme
windows; Go Mono for the machine and Go for the narrator; motion as whole
frames at 60 fps. design/mock/gen.py redraws the mocks from the tokens.
Diffstat (limited to 'design/mock/03-syscall-write.svg')
| -rw-r--r-- | design/mock/03-syscall-write.svg | 293 |
1 files changed, 293 insertions, 0 deletions
diff --git a/design/mock/03-syscall-write.svg b/design/mock/03-syscall-write.svg new file mode 100644 index 0000000..140369e --- /dev/null +++ b/design/mock/03-syscall-write.svg @@ -0,0 +1,293 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="0.0" y="576.0" width="1920.0" height="504.0" fill="#eee6d2"/> +<text x="64.0" y="81.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">System calls</text> +<text x="265.3 280.3 295.3 310.3 325.3 340.3 355.3 370.3 385.3 400.3 415.3 430.3 445.3 460.3 475.3 490.3 505.3" y="81.0" font-family="Go Mono" font-size="25" fill="#6a7ab8" xml:space="preserve">write(1, msg, 14)</text> +<text x="1790.9" y="80.0" font-family="Go Medium" font-size="22" fill="#eee6d2" xml:space="preserve">kernel</text> +<rect x="1766.9" y="65.0" width="16.0" height="16.0" fill="#e8c46a"/> +<text x="1646.4" y="80.0" font-family="Go Medium" font-size="22" fill="#9aa6d9" xml:space="preserve">memory</text> +<rect x="1622.4" y="65.0" width="16.0" height="16.0" fill="#9aa6d9"/> +<text x="1547.1" y="80.0" font-family="Go Medium" font-size="22" fill="#9aa6d9" xml:space="preserve">cpu</text> +<rect x="1523.1" y="65.0" width="16.0" height="16.0" fill="#9aa6d9"/> +<text x="1416.1" y="80.0" font-family="Go Medium" font-size="22" fill="#9aa6d9" xml:space="preserve">source</text> +<rect x="1392.1" y="65.0" width="16.0" height="16.0" fill="#9aa6d9"/> +<line x1="64.0" y1="104.0" x2="1856.0" y2="104.0" stroke="#3a4a8a" stroke-width="2"/> +<rect x="64.0" y="120.0" width="576.0" height="48.0" fill="#16245f"/> +<rect x="65.0" y="121.0" width="574.0" height="406.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<line x1="64.0" y1="168.0" x2="640.0" y2="168.0" stroke="#3a4a8a" stroke-width="2"/> +<rect x="79.0" y="135.0" width="18.0" height="18.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="112.0" y="154.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">hello.c</text> +<rect x="66.0" y="182.0" width="572.0" height="44.0" fill="#4a3d1c"/> +<rect x="66.0" y="182.0" width="74.0" height="44.0" fill="#e8c46a"/> +<text x="94.0 112.0" y="214.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">11</text> +<text x="156.0 174.0 192.0 210.0 228.0 246.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">write(</text> +<text x="264.0" y="214.8" font-family="Go Mono" font-size="30" fill="#c8f0d8" xml:space="preserve">1</text> +<text x="282.0 300.0 318.0 336.0 354.0 372.0 390.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">, msg, </text> +<text x="408.0 426.0" y="214.8" font-family="Go Mono" font-size="30" fill="#c8f0d8" xml:space="preserve">14</text> +<text x="444.0 462.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">);</text> +<line x1="174.0" y1="230.0" x2="174.0" y2="466.0" stroke="#3a4a8a" stroke-width="2"/> +<text x="192.0 210.0 228.0" y="262.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">mov</text> +<text x="282.0 300.0 318.0 336.0 354.0 372.0" y="262.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">eax, 1</text> +<text x="192.0 210.0 228.0" y="310.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">mov</text> +<text x="282.0 300.0 318.0 336.0 354.0 372.0" y="310.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">edi, 1</text> +<text x="192.0 210.0 228.0" y="358.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">lea</text> +<text x="282.0 300.0 318.0 336.0 354.0 372.0 390.0 408.0 426.0 444.0" y="358.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">rsi, [msg]</text> +<text x="192.0 210.0 228.0" y="406.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">mov</text> +<text x="282.0 300.0 318.0 336.0 354.0 372.0 390.0" y="406.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">edx, 14</text> +<rect x="170.0" y="423.0" width="468.0" height="42.0" fill="#4a3d1c"/> +<rect x="170.0" y="423.0" width="8.0" height="42.0" fill="#e8c46a"/> +<text x="192.0 210.0 228.0 246.0 264.0 282.0 300.0" y="454.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve" font-weight="bold">syscall</text> +<text x="94.0 112.0" y="502.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">12</text> +<text x="156.0 174.0 192.0 210.0 228.0 246.0" y="502.8" font-family="Go Mono" font-size="30" fill="#c0dcff" xml:space="preserve" font-weight="bold">return</text> +<text x="282.0" y="502.8" font-family="Go Mono" font-size="30" fill="#c8f0d8" xml:space="preserve">0</text> +<text x="300.0" y="502.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">;</text> +<rect x="672.0" y="120.0" width="576.0" height="48.0" fill="#16245f"/> +<rect x="673.0" y="121.0" width="574.0" height="406.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<line x1="672.0" y1="168.0" x2="1248.0" y2="168.0" stroke="#3a4a8a" stroke-width="2"/> +<rect x="687.0" y="135.0" width="18.0" height="18.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="720.0" y="154.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">registers</text> +<text x="1232.0" y="152.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">x86-64</text> +<rect x="674.0" y="183.0" width="572.0" height="42.0" fill="#4a3d1c"/> +<rect x="674.0" y="183.0" width="84.0" height="42.0" fill="#e8c46a"/> +<text x="913.0" y="214.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="931.0" y="214.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="949.0" y="214.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="967.0" y="214.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="994.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">5</text> +<text x="1012.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">5</text> +<text x="1030.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">d</text> +<text x="1048.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">4</text> +<text x="1075.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">a</text> +<text x="1093.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">1</text> +<text x="1111.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">c</text> +<text x="1129.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">0</text> +<text x="1156.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">1</text> +<text x="1174.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">1</text> +<text x="1192.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">5</text> +<text x="1210.0" y="214.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">c</text> +<text x="692.0 710.0 728.0" y="214.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">rip</text> +<rect x="903.0" y="231.0" width="335.0" height="42.0" fill="#1c4652"/> +<rect x="904.5" y="232.5" width="332.0" height="39.0" fill="none" stroke="#6fd6e6" stroke-width="3"/> +<text x="913.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="931.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="949.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="967.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="994.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1012.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1030.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1048.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1075.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1093.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1111.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1129.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1156.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1174.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1192.0" y="262.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1210.0" y="262.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">1</text> +<text x="692.0 710.0 728.0" y="262.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">rax</text> +<rect x="903.0" y="279.0" width="335.0" height="42.0" fill="#1c4652"/> +<rect x="904.5" y="280.5" width="332.0" height="39.0" fill="none" stroke="#6fd6e6" stroke-width="3"/> +<text x="913.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="931.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="949.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="967.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="994.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1012.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1030.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1048.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1075.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1093.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1111.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1129.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1156.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1174.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1192.0" y="310.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1210.0" y="310.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">1</text> +<text x="692.0 710.0 728.0" y="310.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">rdi</text> +<rect x="903.0" y="327.0" width="335.0" height="42.0" fill="#1c4652"/> +<rect x="904.5" y="328.5" width="332.0" height="39.0" fill="none" stroke="#6fd6e6" stroke-width="3"/> +<text x="913.0" y="358.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="931.0" y="358.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="949.0" y="358.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="967.0" y="358.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="994.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">5</text> +<text x="1012.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">5</text> +<text x="1030.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">d</text> +<text x="1048.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">4</text> +<text x="1075.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">a</text> +<text x="1093.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">1</text> +<text x="1111.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">c</text> +<text x="1129.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">0</text> +<text x="1156.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">2</text> +<text x="1174.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">0</text> +<text x="1192.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">0</text> +<text x="1210.0" y="358.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">4</text> +<text x="692.0 710.0 728.0" y="358.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">rsi</text> +<rect x="903.0" y="375.0" width="335.0" height="42.0" fill="#1c4652"/> +<rect x="904.5" y="376.5" width="332.0" height="39.0" fill="none" stroke="#6fd6e6" stroke-width="3"/> +<text x="913.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="931.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="949.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="967.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="994.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1012.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1030.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1048.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1075.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1093.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1111.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1129.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1156.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1174.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1192.0" y="406.8" font-family="Go Mono" font-size="30" fill="#6a7ab8" xml:space="preserve">0</text> +<text x="1210.0" y="406.8" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">e</text> +<text x="692.0 710.0 728.0" y="406.8" font-family="Go Mono" font-size="30" fill="#9aa6d9" xml:space="preserve">rdx</text> +<text x="766.0" y="260.0" font-family="Go" font-size="22" fill="#9aa6d9" xml:space="preserve">which call</text> +<text x="766.0" y="308.0" font-family="Go" font-size="22" fill="#9aa6d9" xml:space="preserve">1st</text> +<text x="766.0" y="356.0" font-family="Go" font-size="22" fill="#9aa6d9" xml:space="preserve">2nd</text> +<text x="766.0" y="404.0" font-family="Go" font-size="22" fill="#9aa6d9" xml:space="preserve">3rd</text> +<text x="692.0" y="464.0" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">four registers, read by the kernel</text> +<rect x="1280.0" y="120.0" width="576.0" height="48.0" fill="#16245f"/> +<rect x="1281.0" y="121.0" width="574.0" height="406.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<line x1="1280.0" y1="168.0" x2="1856.0" y2="168.0" stroke="#3a4a8a" stroke-width="2"/> +<rect x="1295.0" y="135.0" width="18.0" height="18.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="1328.0" y="154.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">memory</text> +<text x="1840.0" y="152.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">read-only data</text> +<text x="1300.0 1315.0 1330.0 1345.0" y="255.0" font-family="Go Mono" font-size="25" fill="#6a7ab8" xml:space="preserve">a1c0</text> +<text x="1368.0 1383.0 1398.0 1413.0" y="255.0" font-family="Go Mono" font-size="25" fill="#eee6d2" xml:space="preserve">2004</text> +<rect x="1456.0" y="204.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1470.0" y="242.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">H</text> +<text x="1464.0 1479.0" y="276.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">48</text> +<rect x="1504.0" y="204.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1518.0" y="242.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">e</text> +<text x="1512.0 1527.0" y="276.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">65</text> +<rect x="1552.0" y="204.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1566.0" y="242.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">l</text> +<text x="1560.0 1575.0" y="276.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">6c</text> +<rect x="1600.0" y="204.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1614.0" y="242.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">l</text> +<text x="1608.0 1623.0" y="276.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">6c</text> +<rect x="1648.0" y="204.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1662.0" y="242.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">o</text> +<text x="1656.0 1671.0" y="276.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">6f</text> +<rect x="1696.0" y="204.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1710.0" y="242.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">,</text> +<text x="1704.0 1719.0" y="276.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">2c</text> +<rect x="1744.0" y="204.0" width="46.0" height="84.0" fill="#1c4652"/> +<path d="M1759,234 v8 h16 v-8" fill="none" stroke="#eee6d2" stroke-width="3" stroke-linejoin="miter" stroke-linecap="butt"/> +<text x="1752.0 1767.0" y="276.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">20</text> +<rect x="1792.0" y="204.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1806.0" y="242.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">w</text> +<text x="1800.0 1815.0" y="276.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">77</text> +<text x="1300.0 1315.0 1330.0 1345.0" y="359.0" font-family="Go Mono" font-size="25" fill="#6a7ab8" xml:space="preserve">a1c0</text> +<text x="1368.0 1383.0 1398.0 1413.0" y="359.0" font-family="Go Mono" font-size="25" fill="#eee6d2" xml:space="preserve">200c</text> +<rect x="1456.0" y="308.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1470.0" y="346.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">o</text> +<text x="1464.0 1479.0" y="380.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">6f</text> +<rect x="1504.0" y="308.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1518.0" y="346.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">r</text> +<text x="1512.0 1527.0" y="380.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">72</text> +<rect x="1552.0" y="308.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1566.0" y="346.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">l</text> +<text x="1560.0 1575.0" y="380.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">6c</text> +<rect x="1600.0" y="308.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1614.0" y="346.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">d</text> +<text x="1608.0 1623.0" y="380.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">64</text> +<rect x="1648.0" y="308.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1662.0" y="346.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">!</text> +<text x="1656.0 1671.0" y="380.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">21</text> +<rect x="1696.0" y="308.0" width="46.0" height="84.0" fill="#1c4652"/> +<text x="1701.0 1719.0" y="346.0" font-family="Go Mono" font-size="30" fill="#eee6d2" xml:space="preserve">\n</text> +<text x="1704.0 1719.0" y="380.0" font-family="Go Mono" font-size="25" fill="#9aa6d9" xml:space="preserve">0a</text> +<rect x="1744.0" y="308.0" width="46.0" height="84.0" fill="#16245f"/> +<text x="1752.0 1767.0" y="380.0" font-family="Go Mono" font-size="25" fill="#6a7ab8" xml:space="preserve">00</text> +<rect x="1804.0" y="347.0" width="6.0" height="6.0" fill="#6a7ab8"/> +<rect x="1820.0" y="347.0" width="6.0" height="6.0" fill="#6a7ab8"/> +<rect x="1452.5" y="200.5" width="389.0" height="91.0" fill="none" stroke="#6fd6e6" stroke-width="3"/> +<rect x="1452.5" y="304.5" width="293.0" height="91.0" fill="none" stroke="#6fd6e6" stroke-width="3"/> +<text x="1456.0" y="434.0" font-family="Go" font-size="24" fill="#9aa6d9" xml:space="preserve">14 bytes, read by the kernel</text> +<text x="64.0" y="560.0" font-family="Go Medium" font-size="28" fill="#eee6d2" xml:space="preserve">user</text> +<text x="64.0" y="618.0" font-family="Go Medium" font-size="28" fill="#0a1030" xml:space="preserve">kernel</text> +<line x1="960.0" y1="528.0" x2="960.0" y2="576.0" stroke="#eee6d2" stroke-width="6"/> +<path d="M960.0,576.0 L960.0,618.0" fill="none" stroke="#0a1030" stroke-width="6" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M960.0,640.0 L948.0,616.0 L972.0,616.0 Z" fill="#0a1030"/> +<text x="982.0 997.0 1012.0 1027.0 1042.0 1057.0 1072.0" y="562.0" font-family="Go Mono" font-size="25" fill="#eee6d2" xml:space="preserve">syscall</text> +<line x1="1648.0" y1="528.0" x2="1648.0" y2="576.0" stroke="#6fd6e6" stroke-width="6"/> +<path d="M1648.0,576.0 L1648.0,670.0" fill="none" stroke="#0a1030" stroke-width="6" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M1648.0,692.0 L1636.0,668.0 L1660.0,668.0 Z" fill="#0a1030"/> +<text x="1670.0" y="562.0" font-family="Go" font-size="24" fill="#eee6d2" xml:space="preserve">the bytes</text> +<text x="64.0" y="668.0" font-family="Go" font-size="24" fill="#4a5488" xml:space="preserve">what it runs</text> +<rect x="64.0" y="684.0" width="576.0" height="56.0" fill="#e8c46a"/> +<rect x="65.0" y="685.0" width="574.0" height="54.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="92.0 110.0 128.0 146.0 164.0 182.0 200.0 218.0 236.0" y="722.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve" font-weight="bold">tty_write</text> +<rect x="65.0" y="753.0" width="574.0" height="54.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="92.0 110.0 128.0 146.0 164.0 182.0 200.0 218.0 236.0" y="790.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">vfs_write</text> +<rect x="65.0" y="821.0" width="574.0" height="54.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="92.0 110.0 128.0 146.0 164.0 182.0 200.0 218.0 236.0 254.0" y="858.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">ksys_write</text> +<text x="672.0 708.0 744.0 780.0 816.0" y="698.0" font-family="Go Mono" font-size="60" fill="#0a1030" xml:space="preserve" font-weight="bold">write</text> +<text x="876.0" y="698.0" font-family="Go" font-size="28" fill="#4a5488" xml:space="preserve">system call 1</text> +<line x1="672.0" y1="722.0" x2="1248.0" y2="722.0" stroke="#b9ad8e" stroke-width="2"/> +<text x="672.0 690.0 708.0" y="754.8" font-family="Go Mono" font-size="30" fill="#4a5488" xml:space="preserve">rdi</text> +<text x="756.0" y="753.8" font-family="Go Medium" font-size="28" fill="#0a1030" xml:space="preserve">fd</text> +<text x="892.0" y="754.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">1</text> +<text x="930.0" y="753.8" font-family="Go" font-size="28" fill="#4a5488" xml:space="preserve">the terminal</text> +<line x1="672.0" y1="766.0" x2="1248.0" y2="766.0" stroke="#b9ad8e" stroke-width="2"/> +<text x="672.0 690.0 708.0" y="798.8" font-family="Go Mono" font-size="30" fill="#4a5488" xml:space="preserve">rsi</text> +<text x="756.0" y="797.8" font-family="Go Medium" font-size="28" fill="#0a1030" xml:space="preserve">buf</text> +<text x="892.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">5</text> +<text x="910.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">5</text> +<text x="928.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">d</text> +<text x="946.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">4</text> +<text x="973.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">a</text> +<text x="991.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">1</text> +<text x="1009.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">c</text> +<text x="1027.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">0</text> +<text x="1054.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">2</text> +<text x="1072.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">0</text> +<text x="1090.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">0</text> +<text x="1108.0" y="798.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">4</text> +<line x1="672.0" y1="810.0" x2="1248.0" y2="810.0" stroke="#b9ad8e" stroke-width="2"/> +<text x="672.0 690.0 708.0" y="842.8" font-family="Go Mono" font-size="30" fill="#4a5488" xml:space="preserve">rdx</text> +<text x="756.0" y="841.8" font-family="Go Medium" font-size="28" fill="#0a1030" xml:space="preserve">count</text> +<text x="892.0 910.0" y="842.8" font-family="Go Mono" font-size="30" fill="#0a1030" xml:space="preserve">14</text> +<text x="948.0" y="841.8" font-family="Go" font-size="28" fill="#4a5488" xml:space="preserve">bytes</text> +<line x1="672.0" y1="854.0" x2="1248.0" y2="854.0" stroke="#b9ad8e" stroke-width="2"/> +<text x="672.0 690.0 708.0" y="886.8" font-family="Go Mono" font-size="30" fill="#4a5488" xml:space="preserve">rax</text> +<text x="756.0" y="885.8" font-family="Go Medium" font-size="28" fill="#0a1030" xml:space="preserve">returns</text> +<text x="892.0" y="885.8" font-family="Go" font-size="28" fill="#4a5488" xml:space="preserve">not yet</text> +<text x="1280.0" y="736.0" font-family="Go" font-size="24" fill="#4a5488" xml:space="preserve">the terminal's buffer</text> +<rect x="1280.0" y="752.0" width="46.0" height="46.0" fill="#f3b9a0"/> +<rect x="1281.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="1294.0" y="785.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve">H</text> +<rect x="1328.0" y="752.0" width="46.0" height="46.0" fill="#f3b9a0"/> +<rect x="1329.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="1342.0" y="785.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve">e</text> +<rect x="1376.0" y="752.0" width="46.0" height="46.0" fill="#f3b9a0"/> +<rect x="1377.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="1390.0" y="785.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve">l</text> +<rect x="1424.0" y="752.0" width="46.0" height="46.0" fill="#f3b9a0"/> +<rect x="1425.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="1438.0" y="785.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve">l</text> +<rect x="1472.0" y="752.0" width="46.0" height="46.0" fill="#f3b9a0"/> +<rect x="1473.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="1486.0" y="785.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve">o</text> +<rect x="1520.0" y="752.0" width="46.0" height="46.0" fill="#f3b9a0"/> +<rect x="1521.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="1534.0" y="785.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve">,</text> +<rect x="1568.0" y="752.0" width="46.0" height="46.0" fill="#f3b9a0"/> +<rect x="1569.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<path d="M1583,777.8 v8 h16 v-8" fill="none" stroke="#050a24" stroke-width="3" stroke-linejoin="miter" stroke-linecap="butt"/> +<rect x="1616.0" y="752.0" width="46.0" height="46.0" fill="#f3b9a0"/> +<rect x="1617.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="1630.0" y="785.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve">w</text> +<rect x="1664.0" y="752.0" width="46.0" height="46.0" fill="#ff6a4a"/> +<rect x="1665.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#0a1030" stroke-width="2"/> +<text x="1678.0" y="785.8" font-family="Go Mono" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">o</text> +<rect x="1713.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#b9ad8e" stroke-width="2"/> +<rect x="1761.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#b9ad8e" stroke-width="2"/> +<rect x="1809.0" y="753.0" width="44.0" height="44.0" fill="none" stroke="#b9ad8e" stroke-width="2"/> +<text x="1280.0" y="830.0" font-family="Go" font-size="24" fill="#4a5488" xml:space="preserve">9 of 14 copied</text> +<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#0a1030">The program cannot reach the terminal. It leaves four numbers</tspan></text> +<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#0a1030">in registers, and </tspan><tspan font-family="Go Mono" font-weight="normal" fill="#0a1030" font-size="35">syscall</tspan><tspan font-family="Go" font-weight="normal" fill="#0a1030"> hands them to the kernel.</tspan></text> +</svg> |
