diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 22:50:34 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 22:51:17 -0300 |
| commit | fa5d150ac6977264f0704e9af664f8150bd25127 (patch) | |
| tree | f18b56f22ef696208754097c9a13875b0a8b92e6 /design/mock/map.py | |
| parent | 7ebd23e8a5f4634981aa162905a3c4297b835d91 (diff) | |
| download | computeranim-fa5d150ac6977264f0704e9af664f8150bd25127.tar.gz computeranim-fa5d150ac6977264f0704e9af664f8150bd25127.zip | |
design: arc, a pointer to a row of its own panel is drawn
From the user, on the loupe's mock: a pointer in memory named a row two
above it and nothing showed it. In a dump, a loupe and the stack a
pointer whose target is a row of the same panel is an arc in a lane at
the panel's edge, as a jump is in the disassembly: quiet while it stands,
full ink in the step that writes or reads it, a stub when the target is
just off the window. A chain shares a lane. A loupe carries the arcs
among its own rows; the stack's frame chain gets one only when touched.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'design/mock/map.py')
| -rw-r--r-- | design/mock/map.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/design/mock/map.py b/design/mock/map.py index 84e42fa..8e91ffa 100644 --- a/design/mock/map.py +++ b/design/mock/map.py @@ -115,7 +115,7 @@ def draw_map(g, step, loupe, subject=False): D.put(col[2]) mem = C.fields(g, 96, ph(14), "the heap, round what the step reads", 0x1004000, 512, D.heap_fields(0x1004000, 512, 0x1004098), D.MEM, HEAP, D.region, marks=(9,) if step else (), - title="memory") + title="memory", touched={0x1004098} if step else ()) win["view"] = (col[2], mem[0x1004050 if subject else 0x1004070], D.CW, (7 if subject else 5) * ROW) C.registers(g, 476, D.regs(step), D.FLAGS, {"rax": {0: "tick"}, "rcx": {0: "tick"}, "rdi": {0: "strike" if step else "tick"}}) @@ -212,7 +212,7 @@ def clock(g, moment, total): g.t(MINI[0] - 16, 934, "moment %d of %d" % (moment, total), S, FAINT, MONO, "end") -def working_panels(g, step, subject, wrap=lambda name: ("", "")): +def working_panels(g, step, subject, wrap=lambda name: ("", ""), withhold=None): """The working frame's panels, each between the strings wrap(name) gives (a transform, for the dive).""" stage(False) sp = C.SUBJECT if subject else C.BESIDE @@ -245,7 +245,8 @@ def working_panels(g, step, subject, wrap=lambda name: ("", "")): c = open_("view") view = C.fields(g, 48, sp["view"], "the heap, %x to %x" % (0x1004000 + 16 * (SUBJECT_VIEW if subject else BESIDE_VIEW)[0], 0x10040bf), 0x1004000, 512, D.heap_fields(0x1004000, 512, 0x1004098), D.MEM, HEAP, D.region, - marks=(9,) if step else (), rows_shown=SUBJECT_VIEW if subject else BESIDE_VIEW, more_rows=False) + marks=(9,) if step else (), rows_shown=SUBJECT_VIEW if subject else BESIDE_VIEW, more_rows=False, + touched={0x1004098} if step else (), withhold=withhold) g.o.append(c) if c else None out["view"] = view return out, sp @@ -256,7 +257,7 @@ def working(name, step, subject=False, loupe=False, caption=None): m, win = map_log(step, loupe, subject) stage(False) g = Svg() - out, sp = working_panels(g, step, subject) + out, sp = working_panels(g, step, subject, withhold=(0x1004050, 0x10040a0) if loupe else None) D.put(64) C.thread(g, out["thread"][0], [(out["thread"][1], out["thread"][1] + ROW)]) D.put(64) |
