diff --git a/emulator/firmware-decomp/payload_scan.py b/emulator/firmware-decomp/payload_scan.py
new file mode 100644
index 0000000..3d28360
--- /dev/null
+++ b/emulator/firmware-decomp/payload_scan.py
@@ -0,0 +1,68 @@
+"""Robustly capture the frame's geometry footprint from the compiled micro-code.
+Hook EVERY write into the payload region (0x08014000..0x08019000) across the whole draw
+and record two things per write: fixed-point screen coords (v<0x10000, v/256 in [10,832])
+and edge/plane slope floats. No dedup, no timing assumption -> we see every primitive's
+screen constants as they're compiled. If they spread across x[0,832] there is terrain."""
+import sys, time, struct, pickle
+sys.path.insert(0, r'C:\VWE\TeslaRel410\emulator\firmware-decomp')
+import emu860, dis860, emu_main
+emu860.Mem.log = lambda self, *a, **k: None
+S = r'C:\Users\cyd\AppData\Local\Temp\claude\c--VWE-TeslaRel410\4e848c76-6e89-4034-8047-d8d491cb32d8\scratchpad'
+snap = pickle.load(open(S + r'\snapv2.pkl', 'rb'))
+r = emu_main.MainRunner(r'C:\VWE\TeslaRel410\dpl3-revive\patha\cap7.raw.bin', fw='capfw7', max_cmds=6000)
+cpu = r.cpu
+cpu.mem.pages = {k: bytearray(v) for k, v in snap['pages'].items()}
+cpu.ctrl.clear(); cpu.ctrl.update(snap['ctrl'])
+cpu.r = list(snap['r']); cpu.f = list(snap['f']); cpu.cr = dict(snap['cr']); cpu.pc = snap['pc']
+cpu._apipe = list(snap['apipe']); cpu._mpipe = list(snap['mpipe']); cpu._fp_pipes()
+cpu._lpipe = list(snap['lpipe']); cpu._gpipe = list(snap['gpipe'])
+cpu._kr, cpu._ki, cpu._t = snap['kr'], snap['ki'], snap['t']
+cpu.lcc = snap['lcc']; r.qi = snap['qi']; r.heap = list(snap['heap'])
+
+LO, HI = 0x08014000, 0x08019000
+coords = [] # (addr, screen_value)
+slopes = []
+nwrite = 0
+orig = emu860.Mem.w32
+def asf(w): return struct.unpack(' What this is not, yet: a full from-scratch run of
- the compiled micro-code the DMA ships (§02) — the form the ground and sky take, since they
- carry no stored vertices. But that stream is now largely decoded: the command lists read cleanly,
+ the compiled micro-code the DMA ships (§02) — the form the geometry takes on the wire to the
+ card. But that stream is now largely decoded: the command lists read cleanly,
the SENDE z-sweep resolves into a regular 4-word instruction, and its
coefficients are the same ones driving this depth buffer — the array's inputs are
- cross-validated against the hardware's own compiled stream. The full frame, we now know,
- cycles its primitives through two double-buffered coefficient blocks — 1051 SENDs, 384
- TILE ops across 105 tiles — so what remains is capturing each primitive as its SEND fires
- and running them all, not reversing an opaque binary.