From cc2059e39047cafe1886dc17084855ddd0c52b01 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 19:11:00 -0300 Subject: design: the disassembly tied to the stack; rsp's moves seen; a column of text as an experiment From the user. A fact is printed once, in the pane that holds it: under annotation = .tied a row names the word it touched and a touch line ties it to its stack row while a step is walked; .whole keeps the full chain. An instruction that moves rsp or rbp says the amount, and the pin travels row to row with the rows it gains or releases marked, the stack following only after it lands. Every strip is ordered cause before effect and numbered. carry is an optional arrow from memory to a register. An experiment sets a column of text bubbles beside the panes a beat is about, each bubble level with what it speaks of, tried on the call followed down; text may also stand below, above or on a drawing. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/context.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'design/mock/context.py') diff --git a/design/mock/context.py b/design/mock/context.py index b35abd5..5549d02 100644 --- a/design/mock/context.py +++ b/design/mock/context.py @@ -176,7 +176,12 @@ def more(g, x, y): def integer(g, x, y, v, ink=VELLUM): - """A number that is not an address: one digit as it is; more, hex with 0x and its decimal after, faint.""" + """A number that is not an address: one digit as it is; more, hex with 0x and its decimal after, faint; within + 4096 of 2^64, negative.""" + if v >= (1 << 64) - 4096: + s = "-%d" % ((1 << 64) - v) + g.t(x, b(y), s, S, ink, MONO) + return x + len(s) * A if v < 10: g.t(x, b(y), str(v), S, ink, MONO) return x + A @@ -226,6 +231,10 @@ def chain(g, x, y, links, end, marks=None, room=None, lead=0): x = value_arrow(g, x, y) if links else x if marks.get("end") == "tick": # the value it holds changed within three steps held(g, x + 2, y, len(str(end[1])) * A if end[0] == "int" else 3 * A) + if marks.get("end") == "strike" and end[0] == "int": # the value written: the softened vermilion, bold + s_ = str(end[1]) if end[1] < 10 else "0x%x" % end[1] + g.t(x, b(y), s_, S, struck(g, x - 5, y, len(s_) * A + 10), BOLD) + return where if end[0] == "int": integer(g, x, y, end[1]) else: -- cgit v1.3