Skip to content

Noah-2012/Rom_Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rom Parser

A small library for parsing roms.

  • The batch files are useless. They come from the alpha.

It is important to install these packages for python beforehand: argparse, rich, os and subprocess.

  • Argparse
pip install argparse
  • Rich
pip install rich
  • Os
pip install os
  • Subprocess
pip install subprocess

Using it is very simple.

  • 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.

Important:

  • 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 .unf and SNES: .sfc, .smc, .fig, .bs and .st.

Subfunctions

  • 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.

mGBA path

  • 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'

About

A little library for parsing and export roms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors