instructions 112158, context ranges 4162, {'dbr_known': 27721, 'dbr_unknown': 1638, 'd_known': 18755, 'd_unknown': 815}; source {'dbr_runtime': 43865, 'dbr_static': 68293, 'd_runtime': 43865, 'd_static': 68293}
instructions 6525, context ranges 445, {'dbr_known': 462, 'dbr_unknown': 1085, 'd_known': 507, 'd_unknown': 861}; source {'dbr_runtime': 0, 'dbr_static': 6525, 'd_runtime': 0, 'd_static': 6525}
== 1. export markup of /ct_jp.sfc
ExportMarkup65816.java> ExportMarkup65816: ct_jp.sfc (65816:LE:24:snes): functions 2977, labels 429, comments 321, data 210, equates 0, bookmarks 0, types 51 -> /mnt/work/digitalarch/ghidra-65816/migration/ct/out/markup_jp.json + /mnt/work/digitalarch/ghidra-65816/migration/ct/out/markup_jp.gdt  
ExportMarkup65816.java> ExportMarkup65816: 1 applied, 0 failed  
== 2. import /ct_jp_65816.sfc
Snes65816Map.java> Snes65816Map: hirom, 4194304 bytes, header map byte $31, SRAM 8 KB  
Snes65816Map.java> Snes65816Map: bank-0 mirror reads identical to ROM = true  
ApplyRuns65816.java> ApplyRuns65816: context ranges set 4162/4162; runs disassembled 6805, already present 0, blocked 0, tiling failures 0; instructions 0 -> 112158  
ApplyRuns65816.java> ApplyRuns65816: DBR/D context verified on 112158 instructions, mismatches 0  
CtApplyFlow.java> CtApplyFlow: tables 132, computed refs added 2978  
CtApplyFlow.java> CtApplyFlow: function count 0 -> 2626; instructions 112158 -> 112158  
OverlayImage65816.java> OverlayImage65816: created ov_7e3000_c3scenes at ov_7e3000_c3scenes::7e3000 len 33943  
ApplyRuns65816.java> ApplyRuns65816: context ranges set 445/445; runs disassembled 292, already present 0, blocked 0, tiling failures 0; instructions 112158 -> 118683  
ApplyRuns65816.java> ApplyRuns65816: DBR/D context verified on 6525 instructions, mismatches 0  
CtApplyOverlay.java> CtApplyOverlay: runs disassembled 0, present 292, blocked 0, tiling failures 0  
CtApplyOverlay.java> CtApplyOverlay: tables 1, refs 32  
CtApplyOverlay.java> CtApplyOverlay: functions created 195, existed 0, entry not insn 3, failed 0; count 2626 -> 2821  
ImportMarkup65816.java> ImportMarkup65816: source ct_jp.sfc (65816:LE:24:snes), register translation ghidra-snes -> ghidra-65816  
ImportMarkup65816.java> ImportMarkup65816: types resolved 53  
ImportMarkup65816.java> ImportMarkup65816: functions created 157, renamed 534, calling conventions 0, prototypes 228  
ImportMarkup65816.java> ImportMarkup65816: labels 119  
ImportMarkup65816.java> ImportMarkup65816: data 96  
ImportMarkup65816.java> ImportMarkup65816: comments 285  
ImportMarkup65816.java> ImportMarkup65816: equate references 0  
ImportMarkup65816.java> ImportMarkup65816: bookmarks 0  
ImportMarkup65816.java> ImportMarkup65816: skipped 36 x comment: already present  
ImportMarkup65816.java> ImportMarkup65816: skipped 114 x data: already present  
ImportMarkup65816.java> ImportMarkup65816: skipped 310 x label: already present  
ImportMarkup65816.java> ImportMarkup65816: 1419 applied, 0 failed  
CtFixOrphans.java> CtFixOrphans: orphan bytes 443 -> 0; functions 2978 -> 2978  
TailCalls65816.java> TailCalls65816: new function at c20000 (JML target from c0006e)  
TailCalls65816.java> TailCalls65816: new function at c30000 (JML target from c0264b)  
TailCalls65816.java> TailCalls65816: new function at fdfff1 (JML target from c03fe8)  
TailCalls65816.java> TailCalls65816: new function at fdffeb (JML target from c03ff0)  
TailCalls65816.java> TailCalls65816: new function at fdffe8 (JML target from c03ff8)  
TailCalls65816.java> TailCalls65816: new function at fdffe5 (JML target from c03ffc)  
TailCalls65816.java> TailCalls65816: new function at cffbe5 (JML target from c1001f)  
TailCalls65816.java> TailCalls65816: new function at c00000 (JML target from c22505)  
TailCalls65816.java> TailCalls65816: new function at c18000 (JML target from cffbe1)  
TailCalls65816.java> TailCalls65816: new function at c0000e (JML target from fdc0d3)  
TailCalls65816.java> TailCalls65816: long-jump targets made functions 10  
TailCalls65816.java> TailCalls65816: CALL_RETURN set 282, already 0, cleared 0; functions 2978 -> 2990, instructions 118683 -> 118683  
CtFixOrphans.java> CtFixOrphans: orphan bytes 414 -> 0; functions 2990 -> 2994  
JumpTableOverrides65816.java> JumpTableOverrides65816: overrides 54, computed jumps with no known destinations 8, not in a function 0  
SetCallConventions65816.java> SetCallConventions65816: set {__jsl=231, __jsr=2610, __rti=15}, user-set kept 48, RTS+RTL mixed (left) 0  
Analyzed65816.java> Analyzed65816: analyzers switched off 17 (all)  
CtExportListing.java> CtExportListing: total insn bytes 260807, bound 260807, orphan 0, functions 2994, instructions 118683, ERROR bookmarks 0  
REPORT: Execute script: FunctionSnapshot.java '--save' '/mnt/work/digitalarch/ghidra-65816/migration/ct/out/m_jp_snapshot.tsv'  (HeadlessAnalyzer)  
SCRIPT: /home/ryou/ghidra_scripts/FunctionSnapshot.java (HeadlessAnalyzer)  
FunctionSnapshot.java> saved 2994 functions to /mnt/work/digitalarch/ghidra-65816/migration/ct/out/m_jp_snapshot.tsv  
FunctionSnapshot.java> FunctionSnapshot: 2994 applied, 0 failed  
FunctionSnapshot.java> === SCRIPT COMPLETED SUCCESSFULLY ===  
== 3. check
old: functions 2977 labels 429 comments 321 data 210 equates 0 | new: functions 2994 labels 769 comments 321 data 210
markup check: everything in the old program is present in the new one
ghidra 118683, model 118683, only-ghidra 0, only-model 0, length mismatches 0, ctx mismatches 5, mnemonic mismatches 0
 ctx C28011 g=(1, 1, 0, 0, 'PHD') p=(1, 1, 1, 0, 'PHD')
 ctx C28012 g=(1, 1, 0, 0, 'PHB') p=(1, 1, 1, 0, 'PHB')
 ctx C28013 g=(1, 1, 0, 0, 'PHP') p=(1, 1, 1, 0, 'PHP')
 ctx C28014 g=(2, 1, 0, 0, 'SEP') p=(2, 1, 1, 0, 'SEP')
 ctx C28016 g=(2, 1, 0, 0, 'REP') p=(2, 1, 1, 0, 'REP')
 mnemonic pairs: []
done: new program /ct_jp_65816.sfc in /tmp/claude-1000/ctcopy/Chrono Trigger.gpr (old /ct_jp.sfc untouched)
