summaryrefslogtreecommitdiff
path: root/design/mock
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-12 07:03:05 -0300
committerGabriel Schneider <[email protected]>2026-11-12 07:28:53 -0300
commit2311d3617ee17a89b647fea722c47ec739fd63f3 (patch)
tree6422a2191b5b63622bd8b7b7978bbee3741d28c1 /design/mock
parent4907e35bc45d12102d0e09380994814fc2e0a369 (diff)
downloadcomputeranim-2311d3617ee17a89b647fea722c47ec739fd63f3.tar.gz
computeranim-2311d3617ee17a89b647fea722c47ec739fd63f3.zip
design: the introduction's storyboard as built
The storyboard and catalogue follow what the introduction became after its review: the plain build, chapter II's six beats with the stack's convention said and the call before the push, the regroup's bytes flying one at a time over their row, the dump folding into its tag, the Eiffel visit at x2 with the 128 bytes marked, hex offsets, names only after the things. The aim's head is 10; a beat's link fades its head as it draws back. Mocks 29, 30, 31 and 37 redrawn. 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/29-intro-bytes.pngbin83086 -> 78336 bytes
-rw-r--r--design/mock/29-intro-bytes.svg6
-rw-r--r--design/mock/30-intro-words-480.pngbin21208 -> 21282 bytes
-rw-r--r--design/mock/30-intro-words.pngbin128243 -> 128806 bytes
-rw-r--r--design/mock/30-intro-words.svg4
-rw-r--r--design/mock/31-intro-stack.pngbin144165 -> 148516 bytes
-rw-r--r--design/mock/31-intro-stack.svg15
-rw-r--r--design/mock/37-regroup.pngbin138314 -> 125817 bytes
-rw-r--r--design/mock/37-regroup.svg112
-rw-r--r--design/mock/context.py6
-rw-r--r--design/mock/intro.py159
11 files changed, 157 insertions, 145 deletions
diff --git a/design/mock/29-intro-bytes.png b/design/mock/29-intro-bytes.png
index e382abe..3d6c1a9 100644
--- a/design/mock/29-intro-bytes.png
+++ b/design/mock/29-intro-bytes.png
Binary files differ
diff --git a/design/mock/29-intro-bytes.svg b/design/mock/29-intro-bytes.svg
index fcd07cc..e9fad54 100644
--- a/design/mock/29-intro-bytes.svg
+++ b/design/mock/29-intro-bytes.svg
@@ -2,7 +2,7 @@
<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"/>
<g transform="translate(300,170) scale(2)">
-<text x="0.0" y="-10.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">128 bytes, from where rsp points</text>
+<text x="0.0" y="-10.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">128 bytes at 7fffffffece0</text>
<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffece0</text>
<text x="156.0 168.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
<text x="186.0 198.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ed</text>
@@ -140,6 +140,6 @@
<text x="588.0 600.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
<text x="618.0 630.0" y="187.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
</g>
-<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">A running program is bytes in memory.</tspan></text>
-<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">These are 128 of them, sixteen to a row.</tspan></text>
+<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">A running program is bytes in memory:</tspan></text>
+<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">here are 128 of them.</tspan></text>
</svg>
diff --git a/design/mock/30-intro-words-480.png b/design/mock/30-intro-words-480.png
index 4f4c1b4..c1768f9 100644
--- a/design/mock/30-intro-words-480.png
+++ b/design/mock/30-intro-words-480.png
Binary files differ
diff --git a/design/mock/30-intro-words.png b/design/mock/30-intro-words.png
index d4a29db..1abc71b 100644
--- a/design/mock/30-intro-words.png
+++ b/design/mock/30-intro-words.png
Binary files differ
diff --git a/design/mock/30-intro-words.svg b/design/mock/30-intro-words.svg
index 37708fc..63b0416 100644
--- a/design/mock/30-intro-words.svg
+++ b/design/mock/30-intro-words.svg
@@ -190,7 +190,7 @@
<text x="1354.0 1366.0" y="291.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="1384.0 1396.0" y="291.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="1414.0 1426.0" y="291.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
-<text x="1600.0 1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0" y="291.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1f7fbe000</text>
+<text x="1576.0 1588.0 1600.0 1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0" y="291.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x1f7fbe000</text>
<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="315.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed28</text>
<text x="1204.0 1216.0" y="315.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">60</text>
<text x="1234.0 1246.0" y="315.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">18</text>
@@ -240,7 +240,7 @@
<text x="1354.0 1366.0" y="411.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">35</text>
<text x="1384.0 1396.0" y="411.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">e3</text>
<text x="1414.0 1426.0" y="411.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">1f</text>
-<text x="1516.0 1528.0 1540.0 1552.0 1564.0 1576.0 1588.0 1600.0 1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0" y="411.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1fe335fc95a5781c</text>
+<text x="1492.0 1504.0 1516.0 1528.0 1540.0 1552.0 1564.0 1576.0 1588.0 1600.0 1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0" y="411.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x1fe335fc95a5781c</text>
<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="435.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed50</text>
<text x="1204.0 1216.0" y="435.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">38</text>
<text x="1234.0 1246.0" y="435.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">ee</text>
diff --git a/design/mock/31-intro-stack.png b/design/mock/31-intro-stack.png
index a85abd2..69ea78c 100644
--- a/design/mock/31-intro-stack.png
+++ b/design/mock/31-intro-stack.png
Binary files differ
diff --git a/design/mock/31-intro-stack.svg b/design/mock/31-intro-stack.svg
index e3eadcd..7eb286a 100644
--- a/design/mock/31-intro-stack.svg
+++ b/design/mock/31-intro-stack.svg
@@ -133,26 +133,27 @@
<rect x="1518.0" y="706.0" width="3.0" height="3.0" fill="#6a7ab8"/>
<rect x="1526.0" y="706.0" width="3.0" height="3.0" fill="#6a7ab8"/>
<text x="1124.0 1136.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+8</text>
+<text x="1576.0 1588.0 1600.0 1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">the way back</text>
<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text>
<text x="1268.0 1280.0 1292.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce8</text>
<rect x="1310.0" y="727.0" width="11.0" height="2.0" fill="#6a7ab8"/>
<path d="M1328,728 l-8,-5 v10 Z" fill="#6a7ab8"/>
<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">10018b0</text>
<text x="1428.0 1440.0 1452.0 1464.0 1476.0 1488.0 1500.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main+80</text>
-<text x="1112.0 1124.0 1136.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+10</text>
+<text x="1088.0 1100.0 1112.0 1124.0 1136.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0x10</text>
<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text>
<text x="1268.0 1280.0 1292.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf0</text>
<rect x="1310.0" y="751.0" width="11.0" height="2.0" fill="#6a7ab8"/>
<path d="M1328,752 l-8,-5 v10 Z" fill="#6a7ab8"/>
<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7e20de8</text>
-<text x="1112.0 1124.0 1136.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+18</text>
+<text x="1088.0 1100.0 1112.0 1124.0 1136.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0x18</text>
<text x="1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbx</text>
<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text>
<text x="1268.0 1280.0 1292.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf8</text>
<path d="M1310,776 l8,-5 v10 Z" fill="#6a7ab8"/>
<rect x="1317.0" y="775.0" width="11.0" height="2.0" fill="#6a7ab8"/>
<text x="1334.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text>
-<text x="1112.0 1124.0 1136.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+20</text>
+<text x="1088.0 1100.0 1112.0 1124.0 1136.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0x20</text>
<text x="1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbp</text>
<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text>
<text x="1268.0 1280.0 1292.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d00</text>
@@ -164,21 +165,21 @@
<rect x="1510.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/>
<rect x="1518.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/>
<rect x="1526.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/>
-<text x="1112.0 1124.0 1136.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+28</text>
+<text x="1088.0 1100.0 1112.0 1124.0 1136.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0x28</text>
+<text x="1576.0 1588.0 1600.0 1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">the way back</text>
<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text>
<text x="1268.0 1280.0 1292.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d08</text>
<rect x="1310.0" y="823.0" width="11.0" height="2.0" fill="#6a7ab8"/>
<path d="M1328,824 l-8,-5 v10 Z" fill="#6a7ab8"/>
<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7c27781</text>
-<text x="1488.0 1500.0 1512.0 1524.0 1536.0 1548.0 1560.0 1572.0 1584.0 1596.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc+27781</text>
-<text x="1112.0 1124.0 1136.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+30</text>
+<text x="1088.0 1100.0 1112.0 1124.0 1136.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0x30</text>
<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text>
<text x="1268.0 1280.0 1292.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d10</text>
<rect x="1310.0" y="847.0" width="11.0" height="2.0" fill="#6a7ab8"/>
<path d="M1328,848 l-8,-5 v10 Z" fill="#6a7ab8"/>
<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7fe0c60</text>
<text x="1488.0 1500.0 1512.0 1524.0 1536.0 1548.0 1560.0 1572.0 1584.0 1596.0 1608.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">ld.so+22c60</text>
-<text x="1112.0 1124.0 1136.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+38</text>
+<text x="1088.0 1100.0 1112.0 1124.0 1136.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0x38</text>
<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text>
<text x="1268.0 1280.0 1292.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d18</text>
<rect x="1310.0" y="871.0" width="11.0" height="2.0" fill="#6a7ab8"/>
diff --git a/design/mock/37-regroup.png b/design/mock/37-regroup.png
index b984d76..b1a23a1 100644
--- a/design/mock/37-regroup.png
+++ b/design/mock/37-regroup.png
Binary files differ
diff --git a/design/mock/37-regroup.svg b/design/mock/37-regroup.svg
index d500058..0737821 100644
--- a/design/mock/37-regroup.svg
+++ b/design/mock/37-regroup.svg
@@ -28,98 +28,101 @@
<text x="990.0" y="56.0" font-family="Go" font-size="26" fill="#e8c46a" xml:space="preserve" font-weight="bold">2</text>
<text x="1020.0" y="56.0" font-family="Go Medium" font-size="24" fill="#eee6d2" xml:space="preserve">which byte is which</text>
<text x="1252.7 1264.7 1276.7 1288.7 1300.7 1312.7 1324.7 1336.7 1348.7 1360.7" y="56.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 66 to 96</text>
-<text x="1020.0" y="82.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">its offsets under it; the low byte is the first in memory</text>
+<text x="1020.0" y="82.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">its offsets over it, in the header's row; the low byte is the first</text>
<g transform="translate(1000,250) scale(1.25)">
<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffece8</text>
<text x="156.0 168.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">b0</text>
+<text x="156.0 168.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text>
<text x="186.0 198.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">18</text>
+<text x="186.0 198.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+1</text>
<text x="216.0 228.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
+<text x="216.0 228.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+2</text>
<text x="246.0 258.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">01</text>
+<text x="246.0 258.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+3</text>
<text x="276.0 288.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
+<text x="276.0 288.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+4</text>
<text x="306.0 318.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
+<text x="306.0 318.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+5</text>
<text x="336.0 348.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
+<text x="336.0 348.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+6</text>
<text x="366.0 378.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
-<text x="156.0 168.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text>
-<text x="186.0 198.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+1</text>
-<text x="216.0 228.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+2</text>
-<text x="246.0 258.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+3</text>
-<text x="276.0 288.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+4</text>
-<text x="306.0 318.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+5</text>
-<text x="336.0 348.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+6</text>
-<text x="366.0 378.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+7</text>
-<text x="168.0" y="64.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="middle">low byte</text>
-<text x="378.0" y="64.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="middle">high byte</text>
+<text x="366.0 378.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+7</text>
+<text x="150.0" y="-4.8" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">low byte</text>
+<text x="396.0" y="-4.8" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">high byte</text>
</g>
<text x="40.0" y="426.0" font-family="Go" font-size="26" fill="#e8c46a" xml:space="preserve" font-weight="bold">3</text>
-<text x="70.0" y="426.0" font-family="Go Medium" font-size="24" fill="#eee6d2" xml:space="preserve">in flight, the low byte first</text>
-<text x="366.2 378.2 390.2 402.2 414.2" y="426.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 138</text>
-<text x="70.0" y="452.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">6 f apart, 36 f each, on nested arcs; a faint copy stays</text>
+<text x="70.0" y="426.0" font-family="Go Medium" font-size="24" fill="#eee6d2" xml:space="preserve">in flight, one at a time</text>
+<text x="326.1 338.1 350.1 362.1 374.1" y="426.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 174</text>
+<text x="70.0" y="452.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">the low byte first, 24 f each, 18 f apart, 40 over the offsets</text>
<g transform="translate(50,620) scale(1.25)">
<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffece8</text>
<text x="156.0 168.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">b0</text>
+<text x="636.0 648.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">b0</text>
+<text x="636.0 648.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text>
<text x="186.0 198.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">18</text>
+<text x="606.0 618.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">18</text>
+<text x="606.0 618.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+1</text>
<text x="216.0 228.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
+<text x="576.0 588.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
+<text x="576.0 588.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+2</text>
<text x="246.0 258.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">01</text>
+<path d="M258.2,-5.6 L258.9,-10.4 L260.0,-15.0 L261.6,-19.1 L263.7,-22.5 L266.4,-25.0 L269.5,-26.7 L273.3,-27.7 L277.6,-28.0 L282.5,-28.0 L288.0,-28.0 L294.0,-28.0 L300.7,-28.0 L308.1,-28.0 L316.0,-28.0 L324.4,-28.0 L333.5,-28.0 L343.0,-28.0 L353.1,-28.0 L363.5,-28.0 L374.3,-28.0 L385.4,-28.0 L396.7,-28.0 L408.0,-28.0 L419.3,-28.0 L430.6,-28.0 L441.7,-28.0 L452.5,-28.0 L462.9,-28.0 L473.0,-28.0 L482.5,-28.0 L491.6,-28.0 L500.0,-28.0 L507.9,-28.0 L515.3,-28.0 L522.0,-28.0 L528.0,-28.0 L533.5,-28.0 L538.4,-28.0 L542.7,-27.7 L546.5,-26.7 L549.6,-25.0 L552.3,-22.5 L554.4,-19.1 L556.0,-15.0 L557.1,-10.4 L557.8,-5.6" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
+<rect x="393.0" y="-37.8" width="30.0" height="20.0" fill="#0a1030"/>
+<text x="396.0 408.0" y="-20.8" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">01</text>
+<text x="396.0 408.0" y="-42.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+3</text>
+<text x="276.0 288.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
+<text x="276.0 288.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+4</text>
<text x="306.0 318.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
+<text x="306.0 318.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+5</text>
<text x="336.0 348.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
+<text x="336.0 348.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+6</text>
<text x="366.0 378.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
-<text x="306.0 318.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+5</text>
-<text x="336.0 348.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+6</text>
-<text x="366.0 378.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+7</text>
-<text x="378.0" y="64.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="middle">high byte</text>
-<path d="M171.5,-10.8 L174.1,-17.9 L177.4,-24.7 L181.4,-31.2 L186.1,-37.5 L191.3,-43.5 L197.2,-49.2 L203.6,-54.7 L210.5,-59.9 L217.9,-64.8 L225.8,-69.5 L234.2,-73.9 L243.0,-78.0 L252.2,-81.9 L261.8,-85.5 L271.7,-88.8 L281.9,-91.9 L292.4,-94.7 L303.2,-97.2 L314.3,-99.5 L325.5,-101.5 L337.0,-103.2 L348.6,-104.7 L360.3,-105.9 L372.1,-106.8 L384.0,-107.5 L396.0,-107.9 L408.0,-108.0 L420.0,-107.9 L432.0,-107.5 L443.9,-106.8 L455.7,-105.9 L467.4,-104.7 L479.0,-103.2 L490.5,-101.5 L501.7,-99.5 L512.8,-97.2 L523.6,-94.7 L534.1,-91.9 L544.3,-88.8 L554.2,-85.5 L563.8,-81.9 L573.0,-78.0 L581.8,-73.9 L590.2,-69.5 L598.1,-64.8 L605.5,-59.9 L612.4,-54.7 L618.8,-49.2 L624.7,-43.5 L629.9,-37.5 L634.6,-31.2" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
-<text x="632.4 644.4" y="-4.0" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">b0</text>
-<path d="M201.0,-7.9 L203.4,-14.1 L206.3,-20.1 L209.8,-25.8 L213.8,-31.3 L218.4,-36.5 L223.5,-41.5 L229.1,-46.3 L235.2,-50.9 L241.7,-55.2 L248.6,-59.3 L255.9,-63.1 L263.6,-66.8 L271.7,-70.1 L280.0,-73.3 L288.7,-76.2 L297.7,-78.9 L306.9,-81.3 L316.3,-83.5 L326.0,-85.5 L335.8,-87.3 L345.8,-88.8 L356.0,-90.1 L366.2,-91.1 L376.6,-92.0 L387.0,-92.5 L397.5,-92.9 L408.0,-93.0 L418.5,-92.9 L429.0,-92.5 L439.4,-91.9 L449.8,-91.1 L460.0,-90.1 L470.2,-88.8 L480.2,-87.3 L490.0,-85.5 L499.7,-83.5 L509.1,-81.3 L518.3,-78.9 L527.3,-76.2 L536.0,-73.3" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
-<path d="M592.5,-41.6 L597.6,-36.5 L602.2,-31.3 L606.2,-25.8 L609.7,-20.1 L612.6,-14.1 L615.0,-8.0" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
-<text x="553.3 565.3" y="-53.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">18</text>
-<path d="M230.6,-5.1 L232.6,-10.4 L235.1,-15.5 L238.1,-20.4 L241.6,-25.1 L245.5,-29.6 L249.9,-33.9 L254.7,-38.0 L259.9,-41.9 L265.4,-45.6 L271.4,-49.1 L277.7,-52.4 L284.2,-55.5 L291.1,-58.4 L298.3,-61.1 L305.8,-63.6 L313.4,-65.9 L321.3,-68.0 L329.4,-69.9 L337.7,-71.6 L346.1,-73.1 L354.7,-74.4 L363.4,-75.5 L372.2,-76.4 L381.1,-77.1" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
-<path d="M434.9,-77.1 L443.8,-76.4 L452.6,-75.5 L461.3,-74.4 L469.9,-73.1 L478.3,-71.6 L486.6,-69.9 L494.7,-68.0 L502.6,-65.9 L510.2,-63.6 L517.7,-61.1 L524.9,-58.4 L531.8,-55.5 L538.3,-52.4 L544.6,-49.1 L550.6,-45.6 L556.1,-41.9 L561.3,-38.0 L566.1,-33.9 L570.5,-29.6 L574.4,-25.1 L577.9,-20.4 L580.9,-15.5 L583.4,-10.4 L585.4,-5.1" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
-<text x="396.0 408.0" y="-70.8" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">00</text>
-<path d="M261.8,-6.7 L263.9,-10.9 L266.4,-15.0 L269.3,-18.9 L272.6,-22.7" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
-<path d="M322.8,-51.0 L329.2,-52.9 L335.8,-54.7 L342.5,-56.2 L349.4,-57.7 L356.5,-58.9 L363.6,-60.0 L370.8,-60.9 L378.2,-61.7 L385.6,-62.2 L393.0,-62.7 L400.5,-62.9 L408.0,-63.0 L415.5,-62.9 L423.0,-62.7 L430.4,-62.2 L437.8,-61.7 L445.2,-60.9 L452.4,-60.0 L459.5,-58.9 L466.6,-57.7 L473.5,-56.2 L480.2,-54.7 L486.8,-52.9 L493.2,-51.0 L499.4,-48.9 L505.4,-46.7 L511.1,-44.2 L516.6,-41.7 L521.9,-38.9 L526.8,-36.0 L531.4,-32.9 L535.8,-29.7 L539.8,-26.3 L543.4,-22.7 L546.7,-18.9 L549.6,-15.0 L552.1,-10.9 L554.2,-6.7" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
-<text x="283.6 295.6" y="-32.5" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">01</text>
-<path d="M299.7,-15.7 L302.6,-18.6 L305.8,-21.3 L309.2,-23.9 L313.0,-26.4 L316.9,-28.7 L321.1,-30.9 L325.5,-33.0 L330.1,-34.9 L334.9,-36.7 L339.8,-38.4 L345.0,-39.9 L350.2,-41.3 L355.6,-42.6 L361.1,-43.7 L366.8,-44.7 L372.5,-45.6 L378.3,-46.3 L384.1,-46.9 L390.1,-47.4 L396.0,-47.7 L402.0,-47.9 L408.0,-48.0 L414.0,-47.9 L420.0,-47.7 L425.9,-47.4 L431.9,-46.9 L437.7,-46.3 L443.5,-45.6 L449.2,-44.7 L454.9,-43.7 L460.4,-42.6 L465.8,-41.3 L471.0,-39.9 L476.2,-38.4 L481.1,-36.7 L485.9,-34.9 L490.5,-33.0 L494.9,-30.9 L499.1,-28.7 L503.0,-26.4 L506.8,-23.9 L510.2,-21.3 L513.4,-18.6 L516.3,-15.7 L519.0,-12.7 L521.3,-9.6 L523.3,-6.3" fill="none" stroke="#3a4a8a" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="12 8"/>
-<text x="277.8 289.8" y="7.6" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">00</text>
+<text x="366.0 378.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+7</text>
+<text x="666.0" y="-4.8" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">low byte</text>
+<text x="396.0" y="-4.8" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">high byte</text>
</g>
<text x="990.0" y="426.0" font-family="Go" font-size="26" fill="#e8c46a" xml:space="preserve" font-weight="bold">4</text>
<text x="1020.0" y="426.0" font-family="Go Medium" font-size="24" fill="#eee6d2" xml:space="preserve">landed, reversed</text>
-<text x="1222.0 1234.0 1246.0 1258.0 1270.0" y="426.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 186</text>
-<text x="1020.0" y="452.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">the low byte last; each offset lands under its byte</text>
+<text x="1222.0 1234.0 1246.0 1258.0 1270.0" y="426.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 258</text>
+<text x="1020.0" y="452.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">the low byte last; each offset lands over its byte</text>
<g transform="translate(1000,620) scale(1.25)">
<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffece8</text>
<text x="156.0 168.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">b0</text>
-<text x="186.0 198.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">18</text>
-<text x="216.0 228.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
-<text x="246.0 258.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">01</text>
-<text x="276.0 288.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
-<text x="306.0 318.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
-<text x="336.0 348.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
-<text x="366.0 378.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="636.0 648.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">b0</text>
-<text x="636.0 648.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text>
+<text x="636.0 648.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text>
+<text x="186.0 198.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">18</text>
<text x="606.0 618.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">18</text>
-<text x="606.0 618.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+1</text>
+<text x="606.0 618.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+1</text>
+<text x="216.0 228.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="576.0 588.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
-<text x="576.0 588.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+2</text>
+<text x="576.0 588.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+2</text>
+<text x="246.0 258.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">01</text>
<text x="546.0 558.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">01</text>
-<text x="546.0 558.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+3</text>
+<text x="546.0 558.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+3</text>
+<text x="276.0 288.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="516.0 528.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
-<text x="516.0 528.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+4</text>
+<text x="516.0 528.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+4</text>
+<text x="306.0 318.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="486.0 498.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
-<text x="486.0 498.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+5</text>
+<text x="486.0 498.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+5</text>
+<text x="336.0 348.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="456.0 468.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
-<text x="456.0 468.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+6</text>
+<text x="456.0 468.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+6</text>
+<text x="366.0 378.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="426.0 438.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text>
-<text x="426.0 438.0" y="43.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+7</text>
-<text x="648.0" y="64.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="middle">low byte</text>
-<text x="438.0" y="64.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="middle">high byte</text>
+<text x="426.0 438.0" y="-4.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+7</text>
+<text x="666.0" y="-4.8" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">low byte</text>
+<text x="420.0" y="-4.8" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">high byte</text>
</g>
<text x="40.0" y="796.0" font-family="Go" font-size="26" fill="#e8c46a" xml:space="preserve" font-weight="bold">5</text>
<text x="70.0" y="796.0" font-family="Go Medium" font-size="24" fill="#eee6d2" xml:space="preserve">the spaces close</text>
-<text x="272.2 284.2 296.2 308.2 320.2" y="796.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 216</text>
+<text x="272.2 284.2 296.2 308.2 320.2" y="796.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 288</text>
<text x="70.0" y="822.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">sixteen digits, the same eight bytes</text>
<g transform="translate(50,990) scale(1.25)">
<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffece8</text>
+<text x="468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0 564.0 576.0 588.0 600.0 612.0 624.0 636.0 648.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00000000010018b0</text>
+<path d="M469,16 v6 H575 v-6" fill="none" stroke="#6a7ab8" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/>
+<text x="468.0" y="46.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">zeros in front</text>
<text x="156.0 168.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">b0</text>
<text x="186.0 198.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">18</text>
<text x="216.0 228.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
@@ -128,13 +131,10 @@
<text x="306.0 318.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="336.0 348.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
<text x="366.0 378.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#7c7b81" xml:space="preserve" font-weight="500">00</text>
-<text x="468.0 480.0 492.0 504.0 516.0 528.0 540.0 552.0 564.0 576.0 588.0 600.0 612.0 624.0 636.0 648.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00000000010018b0</text>
-<path d="M469,26 v6 H575 v-6" fill="none" stroke="#6a7ab8" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/>
-<text x="522.0" y="54.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="middle">zeros in front</text>
</g>
<text x="990.0" y="796.0" font-family="Go" font-size="26" fill="#e8c46a" xml:space="preserve" font-weight="bold">6</text>
<text x="1020.0" y="796.0" font-family="Go Medium" font-size="24" fill="#eee6d2" xml:space="preserve">the zeros in front go</text>
-<text x="1257.9 1269.9 1281.9 1293.9 1305.9" y="796.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 240</text>
+<text x="1257.9 1269.9 1281.9 1293.9 1305.9" y="796.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 312</text>
<text x="1020.0" y="822.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">a word is written without them</text>
<g transform="translate(1000,990) scale(1.25)">
<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="19.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffece8</text>
@@ -150,7 +150,7 @@
</g>
<text x="40.0" y="1166.0" font-family="Go" font-size="26" fill="#e8c46a" xml:space="preserve" font-weight="bold">7</text>
<text x="70.0" y="1166.0" font-family="Go Medium" font-size="24" fill="#eee6d2" xml:space="preserve">the other fifteen at a run</text>
-<text x="351.4 363.4 375.4 387.4 399.4 411.4 423.4 435.4 447.4 459.4 471.4 483.4" y="1166.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 288 to 386</text>
+<text x="351.4 363.4 375.4 387.4 399.4 411.4 423.4 435.4 447.4 459.4 471.4 483.4" y="1166.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve">f 360 to 458</text>
<text x="70.0" y="1192.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">rows 6 f apart: each word fades in (8 f) as its bytes dim</text>
<g transform="translate(50,1360) scale(1.25)">
<text x="0.0 12.0 24.0 36.0 48.0 60.0 72.0 84.0 96.0 108.0 120.0 132.0" y="-28.8" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7fffffffed30</text>
diff --git a/design/mock/context.py b/design/mock/context.py
index 5549d02..2e8b450 100644
--- a/design/mock/context.py
+++ b/design/mock/context.py
@@ -99,6 +99,7 @@ def held_cell(g, x, y, w, h, k=1):
MINIMAP = 0 # a pane with its own minimap: the frame this much wider than its content
+HEX0X = False # the introduction's offsets: `0x` from 0x10 up (`-8`, `+0x10`)
def tag(g, x, y, w, h, title, focus=False, note=None):
@@ -407,9 +408,10 @@ def stack(g, y, rows, frames, note=None, rsp=None, roles=None, touched=(), chain
ys.append(yy)
if pins:
pin(g, RX + 16, yy, pins, STACK)
- if rsp is not None: # the offset from rsp, pwndbg's way: +18
+ if rsp is not None: # the offset from rsp, pwndbg's way: +18 (the introduction's +0x18)
off = slot - rsp
- g.t(RX + 172, b(yy), ("+%x" % off) if off >= 0 else ("-%x" % -off), S, FAINT, MONO, "end")
+ p = "0x" if HEX0X and abs(off) >= 0x10 else ""
+ g.t(RX + 172, b(yy), ("+%s%x" % (p, off)) if off >= 0 else ("-%s%x" % (p, -off)), S, FAINT, MONO, "end")
end_x = room.get(i, RX + CW - 136)
if marks and marks[0].get("free"): # above rsp: not the stack's yet; its word faint, no chain
g.t(first, b(yy), "%x" % slot, S, mix(STACK, PAGE, 0.6), MONO)
diff --git a/design/mock/intro.py b/design/mock/intro.py
index 87d22bf..a35ddb3 100644
--- a/design/mock/intro.py
+++ b/design/mock/intro.py
@@ -290,6 +290,12 @@ def camera(g, k, cx, cy):
g.o.append(f'<g transform="translate({960 - cx * k},{468 - cy * k}) scale({k})">')
+def word_text(w):
+ """A word as the stack writes it: an address bare; a number as the `value` atom writes it (a digit, `0x` and its
+ hex; a small number's decimal is left out here, as none is in these words)."""
+ return "%x" % w if ink_of(w) or w < 10 else "0x%x" % w
+
+
def raw_dump(g, x, y, rows, per=16, words=False, inked=False):
"""The stack's bytes from rsp, `per` to a row; with words, each row's eight bytes read right to left as the
word they make, beside them, in the ink of what it points into when inked. Returns the rows' y."""
@@ -306,7 +312,7 @@ def raw_dump(g, x, y, rows, per=16, words=False, inked=False):
if words: # the word, ranged right in its field (its eight pairs as they land): low byte last
w_ = D.word(a0)
ink = (ink_of(w_) or VELLUM) if inked else VELLUM
- g.t(bx + per * 30 + 24 + 8 * 30, b(yy), "%x" % w_, S, ink, MONO, "end")
+ g.t(bx + per * 30 + 24 + 8 * 30, b(yy), word_text(w_), S, ink, MONO, "end")
return ys
@@ -315,11 +321,11 @@ def frame_bytes(name):
gen.W, gen.H = 1920, 1080
g = Svg()
g.o.append('<g transform="translate(300,170) scale(2)">')
- g.t(0, -10, "128 bytes, from where rsp points", 18, FAINT, "sans")
+ g.t(0, -10, "128 bytes at %x" % RSP, 18, FAINT, "sans") # nothing named before it is shown: no stack, no rsp
raw_dump(g, 0, 0, 8)
g.o.append("</g>")
- gen.caption(g, [[("A running program is bytes in memory.",)],
- [("These are 128 of them, sixteen to a row.",)]])
+ gen.caption(g, [[("A running program is bytes in memory:",)],
+ [("here are 128 of them.",)]])
g.save(name)
@@ -370,78 +376,68 @@ def glide(t):
return 3 * (1 - m) * m * m + m ** 3
-def flight(k, t, closed=False):
- """Where byte k is at t of its flight: straight up off its place, over on an arc a quarter as high as it is long
- (34 to 120), straight down onto its pair's place in the word, the pairs 30 apart as they land. Returns the
- byte's x and rise, its two ends and the arc's height; arc(k, u) is the path."""
- sx = BX + 30 * k
- ex = FR - (24 if closed else 30) * (k + 1) + (0 if closed else 6)
- h = min(max((ex - sx) / 4, 34), 120)
- x, y = arc(sx, ex, h, glide(t))
- return x, y, sx, ex, h
+LIFT, OFF_AIR = 40, 22 # a byte flies 40 over its row; its offset rides 22 over it
+
+def clamp01(x):
+ return min(max(x, 0.0), 1.0)
-def arc(sx, ex, h, u):
- """The cubic from (sx, 0) to (ex, 0) leaving and arriving upright, h high at its middle."""
- H = h / 0.75
- return sx + (ex - sx) * (3 * u * u - 2 * u ** 3), -3 * (1 - u) * u * H
+
+def flight(k, f):
+ """Byte k at frame f of the beat: one in the air at a time, 24 f each, 18 f apart, the low byte first (motion.md,
+ "A word read"). Straight up to 40 over the row (a quarter of the flight), over, straight down (the last quarter);
+ across on `glide` between a tenth and nine tenths of it. Returns its flight's progress, x and rise, and its ends."""
+ s = (f - 108 - 18 * k) / 24
+ sx, ex = BX + 30 * k, FR - 24 - 30 * k
+ u = clamp01(s)
+ x = sx + (ex - sx) * glide(clamp01((u - 0.1) / 0.8))
+ lift = LIFT * min(glide(clamp01(u / 0.25)), glide(clamp01((1 - u) / 0.25)))
+ return s, x, lift, sx, ex
def walk_row(g, y, state, f=0):
- """The walked row at frame f of the beat: state names the instant (see regroup_strip). The bytes themselves
- fly; each one's place in the dump takes a faint copy once it has left (from a third of its flight)."""
+ """The walked row at frame f of the beat: state names the instant (see regroup_strip). Its offsets stand over it,
+ in the header's row (the walked word is the dump's first); the bytes themselves fly over them, one at a time;
+ each one's place in the dump takes a faint copy once it has left (from a third of its flight)."""
vals = [D.MEM[WALK + k] for k in range(8)]
faint = mix(VELLUM, PAGE, 0.5)
C.addr(g, 0, y, WALK, STACK if state == "ink" else FAINT)
- t_ = lambda k: (f - 108 - 6 * k) / 36 if state == "flight" else (1 if state != "which" else 0)
- for k, v in enumerate(vals):
- t = t_(k)
- if t <= 0:
- g.t(BX + 30 * k, b(y), "%02x" % v, S, VELLUM, MONO)
- elif t >= 1 / 3:
- g.t(BX + 30 * k, b(y), "%02x" % v, S, faint, MONO)
- if state in ("which", "flight"):
- for k in range(8): # the offsets: where each byte is, under it
- if t_(k) <= 0:
- g.t(BX + 30 * k + 12, b(y + ROW), "+%d" % k, S, FAINT, MONO, "middle")
- if t_(0) <= 0:
- g.t(BX + 12, y + 2 * ROW + 16, "low byte", 18, DIM, "sans", "middle")
- if t_(7) <= 0:
- g.t(BX + 7 * 30 + 12, y + 2 * ROW + 16, "high byte", 18, DIM, "sans", "middle")
- if state == "flight":
- for k in range(8):
- t = t_(k)
- x, yy, sx, ex, h = flight(k, min(max(t, 0), 1))
- if 0 < t < 1: # the path, for the still only, broken round the byte
- pts = [(arc(sx, ex, h, u)[0] + 12, y + ROW / 2 + arc(sx, ex, h, u)[1]) for u in [i / 60 for i in range(61)]]
- seg = []
- for p in pts + [None]:
- if p is not None and p[1] < y - 4 and (abs(p[0] - x - 12) > 26 or abs(p[1] - (y + yy + ROW / 2)) > 16):
- seg.append(p)
- continue
- if len(seg) > 1:
- g.path("M" + " L".join("%.1f,%.1f" % q for q in seg), RULE, 2, dash="12 8")
- seg = []
- g.t(x, b(y + yy), "%02x" % vals[k], S, BRIGHT, BOLD)
- if t >= 1:
- g.t(ex, b(y), "%02x" % vals[k], S, VELLUM, MONO)
- g.t(ex + 12, b(y + ROW), "+%d" % k, S, FAINT, MONO, "middle")
- if t_(0) >= 1:
- g.t(FR - 12, y + 2 * ROW + 16, "low byte", 18, DIM, "sans", "middle")
- if state == "landed":
- for k in range(8):
- ex = FR - 30 * (k + 1) + 6
- g.t(ex, b(y), "%02x" % vals[k], S, VELLUM, MONO)
- g.t(ex + 12, b(y + ROW), "+%d" % k, S, FAINT, MONO, "middle")
- g.t(FR - 12, y + 2 * ROW + 16, "low byte", 18, DIM, "sans", "middle")
- g.t(FR - 234 + 12, y + 2 * ROW + 16, "high byte", 18, DIM, "sans", "middle")
+ if state in ("which", "flight", "landed"):
+ f = {"which": 96, "landed": 258}.get(state, f)
+ xs = {}
+ for k, v in enumerate(vals):
+ s, x, lift, sx, ex = flight(k, f)
+ xs[k] = (s, x)
+ if s > 0 and f >= 108 + 8 + 18 * k: # its place keeps a faint copy
+ g.t(sx, b(y), "%02x" % v, S, faint, MONO)
+ if 0 < s < 1: # the path, for the still only: up, over, down
+ pts = [flight(k, 108 + 18 * k + 24 * i / 60)[1:3] for i in range(61)]
+ seg = [(px + 12, y + ROW / 2 - pl) for px, pl in pts if pl > ROW / 2 + 4] # above the row only
+ g.path("M" + " L".join("%.1f,%.1f" % q for q in seg), RULE, 2, dash="12 8")
+ g.rect(x - 3, b(y) - lift - 17, 2 * A + 6, 20, PAGE)
+ g.t(x, b(y) - lift, "%02x" % v, S, BRIGHT, BOLD)
+ g.t(x + 12, b(y) - lift - OFF_AIR, "+%d" % k, S, FAINT, MONO, "middle")
+ else:
+ g.t(x, b(y), "%02x" % v, S, VELLUM, MONO)
+ g.t(x + 12, b(y - ROW), "+%d" % k, S, FAINT, MONO, "middle")
+ # `low byte` left of `+0` at rest, right of it landed (the word's last pair); `high byte` right of `+7` at
+ # rest, left of it landed; each goes as a byte lifts and comes back as its own lands
+ s0, x0 = xs[0]
+ if s0 <= 0 or s0 >= 1:
+ g.t(x0 - 6 if s0 <= 0 else x0 + 30, b(y - ROW), "low byte", 18, DIM, "sans", "end" if s0 <= 0 else "start")
+ s6, s7, x7 = xs[6][0], xs[7][0], xs[7][1]
+ if s6 <= 0 or s7 >= 1:
+ g.t(x7 + 30 if s6 <= 0 else x7 - 6, b(y - ROW), "high byte", 18, DIM, "sans", "start" if s6 <= 0 else "end")
if state == "closed":
word = "".join("%02x" % vals[k] for k in reversed(range(8)))
g.t(FR, b(y), word, S, VELLUM, MONO, "end")
lead = len(word) - len(word.lstrip("0"))
x0, x1 = FR - 16 * A, FR - (16 - lead) * A
- g.path(f"M{x0 + 1},{y + ROW + 2} v6 H{x1 - 1} v-6", FAINT, 2)
- g.t((x0 + x1) / 2, y + ROW + 30, "zeros in front", 18, DIM, "sans", "middle")
+ g.path(f"M{x0 + 1},{y + ROW - 8} v6 H{x1 - 1} v-6", FAINT, 2)
+ g.t(x0, y + ROW + 22, "zeros in front", 18, DIM, "sans")
+ if state in ("closed", "zeros", "ink"):
+ for k, v in enumerate(vals):
+ g.t(BX + 30 * k, b(y), "%02x" % v, S, faint, MONO)
if state in ("zeros", "ink"):
ink = CODE if state == "ink" else VELLUM
g.t(FR, b(y), "10018b0", S, ink, MONO, "end")
@@ -451,18 +447,19 @@ def walk_row(g, y, state, f=0):
def regroup_strip(name):
- """Mock 37: `regroup` walked, on the return address's real bytes, seven instants with their frames (from the
- beat's step, 552 in the introduction's chart). Each is the frame's x2 camera on the dump, drawn here at x1.5."""
+ """Mock 37: `regroup` walked, on the return address's real bytes, eight instants with their frames (from the
+ beat's step, motion.md's "A word read"). Each is the frame's x2 camera on the walked row, drawn here at x1.25."""
gen.W, gen.H = 1920, 1520
g = Svg()
cells = [("0 to 48", "eight to a row", "the rows make room; each right half goes down a row, then left", "reflow"),
- ("66 to 96", "which byte is which", "its offsets under it; the low byte is the first in memory", "which"),
- ("138", "in flight, the low byte first", "6 f apart, 36 f each, on nested arcs; a faint copy stays",
+ ("66 to 96", "which byte is which", "its offsets over it, in the header's row; the low byte is the first",
+ "which"),
+ ("174", "in flight, one at a time", "the low byte first, 24 f each, 18 f apart, 40 over the offsets",
"flight"),
- ("186", "landed, reversed", "the low byte last; each offset lands under its byte", "landed"),
- ("216", "the spaces close", "sixteen digits, the same eight bytes", "closed"),
- ("240", "the zeros in front go", "a word is written without them", "zeros"),
- ("288 to 386", "the other fifteen at a run", "rows 6 f apart: each word fades in (8 f) as its bytes dim",
+ ("258", "landed, reversed", "the low byte last; each offset lands over its byte", "landed"),
+ ("288", "the spaces close", "sixteen digits, the same eight bytes", "closed"),
+ ("312", "the zeros in front go", "a word is written without them", "zeros"),
+ ("360 to 458", "the other fifteen at a run", "rows 6 f apart: each word fades in (8 f) as its bytes dim",
"run"),
("ink beat", "then its ink, and its mapping", "framed with its band in the address space (mock 30)", "ink")]
for i, (fr, title, sub, state) in enumerate(cells):
@@ -489,9 +486,9 @@ def regroup_strip(name):
for k, v in enumerate(vals):
g.t(BX + 30 * k, b(y), "%02x" % v, S, mix(VELLUM, PAGE, 1 - 0.5 * fade), MONO)
if fade:
- g.t(FR, b(y), "%x" % D.word(a), S, mix(VELLUM, PAGE, fade), MONO, "end")
+ g.t(FR, b(y), word_text(D.word(a)), S, mix(VELLUM, PAGE, fade), MONO, "end")
else:
- walk_row(g, 0, state, {"which": 96, "flight": 138}.get(state, 0))
+ walk_row(g, 0, state, {"which": 96, "flight": 174, "landed": 258}.get(state, 0))
g.o.append("</g>")
g.save(name)
@@ -502,8 +499,20 @@ def frame_stack(name):
camera(g, 1.25, 976 + 440, 212 + 330)
C.RX = 976
C.registers(g, 212, D.regs(False), D.FLAGS, {})
- rows = [r for r in __import__("map").slot_rows(16, 8)]
- C.stack(g, 664, rows, __import__("map").frames_from(16, 8), rsp=RSP, roles=__import__("map").roles_from(16, 8))
+ M = __import__("map")
+ rows = [r for r in M.slot_rows(16, 8)]
+ frames = M.frames_from(16, 8)
+ roles = M.roles_from(16, 8)
+ for _, _, z in frames: # the introduction names the way back too: each frame's last word
+ if z < len(rows):
+ roles[z] = ("the way back", DIM)
+ slot, pins, links, end = rows[z][:4]
+ v, ink, sym = links[0] # its symbol gives way to the role where both do not fit, as the renderer's
+ if 184 + 12 * A + 30 + (len("%x" % v) + 1 + len(sym)) * A > C.CW - 136 - len("the way back") * A - 12:
+ rows[z] = (slot, pins, [(v, ink)], end)
+ C.HEX0X = True # and writes its offsets with `0x` from 0x10 up
+ C.stack(g, 664, rows, frames, rsp=RSP, roles=roles)
+ C.HEX0X = False
g.o.append("</g>")
gen.caption(g, [[("The same words as the stack: rsp points at its top, each word",)],
[("has its offset, a frame is a span, and the registers sit over it.",)]])