A small library for parsing roms.
- The batch files are useless. They come from the alpha.
- Argparse
pip install argparse- Rich
pip install rich- Os
pip install os- Subprocess
pip install subprocess- You need to open a terminal in the respective directory (e.g. GB, GBA, GBC).
- Then enter:
make read_rom <file>- Now you will see a lot of information about the ROM.
- In the GB, GBA, GBC folder the following file extensions are supported:
.gb, .gba and .gbc. - In the NES, SNES folder the following file extensions are supported (beta): NES:
.nes, .fds and .unfand SNES:.sfc, .smc, .fig, .bs and .st.
-
You now have an input that looks like this:
What do you want to do? [1] Display the entire ROM content [2] Create a HEX file [3] Display a specific address [4] Start the game in mGBA [5] Exit Please enter your selection (1/2/3/4/5):
- Function 1 prints the entire content of the ROM in hex and ascii.
- Function 2 does the same as function one, except that it exports the entire ROM content to a hex file.
- Function 3 lets you display the content of a specific address (hex and ascii).
- Function 4 starts the ROM in mGBA. Please install it first if you want.
- Function 5 ends the script.
- It is important that you specify the correct path in the python files.
- It should look like this:
mgba_path = 'c:\\Program Files\\mGBA\\mGBA.exe'