diff options
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) |
