MCPcopy Index your code
hub / github.com/AdamLaurie/rompar

github.com/AdamLaurie/rompar @v2.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.1.0 ↗ · + Follow
132 symbols 376 edges 14 files 7 documented · 5%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rompar

Masked ROM optical data extraction tool.

Latest version:

https://github.com/AdamLaurie/rompar

Original version by Adam Laurie, but significant changes by John McMaster, Caitlin Morgan, and Jessy Exum.

Rompar is an interactive tool for extracting bianry data out of mask ROM images. The computer vision method implemented is rather simple, but has proven useful in several projects. There is still a lot that can be added to rompar, and pull requests are welcome.

Installing

Ubuntu 16.04

sudo apt-get install python3-pyqt5
sudo pip3 install opencv-python

Windows

git clone https://github.com/AdamLaurie/rompar
cd rompar
virtualenv venv
venv\Scripts\activate
pip install opencv-python pyqt5
python rompar.py file.jpg 16 8

Usage

To start a new project out of a mask rom image:

rompar.py <IMAGE> <BITS PER GROUP> <ROWS PER GROUP>

To open an existing rompar grid project:

rompar.py --load <GRIDFILE>

When the rompar python package is installed, romparqt should be used instead of rompar.py.

The new QT ui differs greatly from the original project, but the original walked through example is still useful for seeing what Rompar can do:

For more information, check the tutorial in the help menu, and the shortcuts on the various menu items inside of Rompar.

Colors: * Green: detected as bright spot ("1") * Blue: detected as dark spot ("0")

There are some more advanced ML aspects that were explored but never merged in. This is still an open area to explore

Some ROMs can be post procssed into binaries using https://github.com/SiliconAnalysis/zorrom

Enjoy! Adam & Rompar contributors.

Release history

2.1.0 * Better command line error handling * Improved similar die import optons: --dx/--dy * Bug fix: fix crash on bit groups of size 1 * Windows installer

2.0.0 * Qt GUI major rewrite

1.0.0 * JSON save files instead of pickle * rompar library

0.2.0 * Validate input better * Misc code cleanup

0.1.0 * Adam Laurie original code

Core symbols most depended-on inside this repo

display_image
called by 35
rompar/qtui/romparqtui.py
showTempStatus
called by 30
rompar/qtui/romparqtui.py
read_data
called by 16
rompar/rompar.py
get_pixel
called by 6
rompar/rompar.py
get_data
called by 6
rompar/rompar.py
bitxy_to_imgxy
called by 4
rompar/rompar.py
set_data
called by 4
rompar/rompar.py
showNamedTab
called by 4
rompar/qtui/about.py

Shape

Method 111
Function 13
Class 8

Languages

Python100%

Modules by API surface

rompar/qtui/romparqtui.py56 symbols
rompar/rompar.py43 symbols
rompar/qtui/findhexdialog.py9 symbols
rompar/qtui/about.py7 symbols
rompar/config.py6 symbols
setup.py2 symbols
rompar/util.py2 symbols
rompar/qtui/rompargridview.py2 symbols
rompar/qtui/res_rc.py2 symbols
db_pickle2json.py2 symbols
imgbits.py1 symbols

For agents

$ claude mcp add rompar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact