1
0

LCD decompile

This commit is contained in:
Aiden
2026-05-25 15:10:32 +10:00
parent 1d7f00e59c
commit cdfb811c28
15 changed files with 8836 additions and 19 deletions

View File

@@ -10,6 +10,8 @@ from .dataflow import analyze_dataflow
from .decoder import H8536Decoder
from .formatting import parse_int
from .indirect import analyze_indirect_flow
from .lcd_driver import analyze_lcd_driver
from .lcd_text import analyze_lcd_text
from .peripheral_access import analyze_peripheral_access
from .render import format_callgraph_dot, format_listing, write_json
from .rom import Rom
@@ -81,6 +83,8 @@ def main() -> int:
sci_analysis = analyze_sci(instructions, clock_hz=args.clock_hz)
peripheral_access = analyze_peripheral_access(instructions)
indirect_flow = analyze_indirect_flow(rom, instructions, labels)
lcd_text = analyze_lcd_text(rom, instructions, start=args.start, end=end)
lcd_driver = analyze_lcd_driver(instructions)
args.out.parent.mkdir(parents=True, exist_ok=True)
args.out.write_text(
@@ -101,6 +105,8 @@ def main() -> int:
indirect_flow=indirect_flow,
dataflow=dataflow,
symbols=symbols,
lcd_text=lcd_text,
lcd_driver=lcd_driver,
),
encoding="utf-8",
)
@@ -120,6 +126,8 @@ def main() -> int:
indirect_flow=indirect_flow,
dataflow=dataflow,
symbols=symbols,
lcd_text=lcd_text,
lcd_driver=lcd_driver,
)
if args.callgraph_dot:
args.callgraph_dot.parent.mkdir(parents=True, exist_ok=True)