• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Tool] How do I disassemble a GB rom

  • 10
    Posts
    2
    Years
    • Seen Nov 25, 2022
    So I've been trying to find a program/exe/VSC and I'm having no luck on finding a program/exe/VSC that can disassemble a GB rom.
    So I scattered around the internet and found this site, so hopefully you all can help me!
    (NesDev was useless for me)
    If you have any program/exe/VSC that can disassemble a GB rom file please reply to this post and link it.
    Thank you!
     
    So I've been trying to find a program/exe/VSC and I'm having no luck on finding a program/exe/VSC that can disassemble a GB rom.
    So I scattered around the internet and found this site, so hopefully you all can help me!
    (NesDev was useless for me)
    If you have any program/exe/VSC that can disassemble a GB rom file please reply to this post and link it.
    Thank you!
    I imagine you'll want to use a disassembler for a task like that such as IDA Pro, Ghidra or mgbdis.
     
    I imagine you'll want to use a disassembler for a task like that such as IDA Pro, Ghidra or mgbdis.

    I've been trying the mgbdis but it just wont work bc it keeps saying "/usr/bin/env: 'python3': no such file or directory" can you help me fix that?
     
    I've been trying the mgbdis but it just wont work bc it keeps saying "/usr/bin/env: 'python3': no such file or directory" can you help me fix that?
    You need to set up the folder path to Python 3 on your Windows' PATH Environment Variable.
    I mean, it is a Python construction so that much should be obvious.

    Assuming that for whatever reason you didn't check the option to do it automatically in its installer or that you have a portable installation, you just gotta do Win Key + R -> sysdm.cpl -> Advanced -> Environment Variables -> System variables: PATH, and throw in the folder path to Python 3 there.
    [PokeCommunity.com] How do I disassemble a GB rom
     
    Ye so now it kinda worked:
    -bash: ./mgbids.py: No such file or directory
    It seems you're trying to invoke mgbdis from somewhere outside of its directory, which is not how things work.
    You need to go to mgbdis' folder in your command prompt using the cd command and then running the Python script there as indicated in mgbdis' README.
     
    It seems you're trying to invoke mgbdis from somewhere outside of its directory, which is not how things work.
    You need to go to mgbdis' folder in your command prompt using the cd command and then running the Python script there as indicated in mgbdis' README.

    just did that but now it came back again
    /usr/bin/env: 'python3': No such file or directory
     
    just did that but now it came back again
    /usr/bin/env: 'python3': No such file or directory
    Same deal, you just don't have the path to Python in your PATH Environment Variable.
    I just gave it a try myself, and mgbdis is working normally.
    Code:
    C:\Users\lun0s\Desktop\mgbdis-master>python mgbdis.py pkmnred.gb
    Loading "pkmnred.gb"...
    ROM MD5 hash: 3d45c1ee9abd5738df46d2bdda8b57dc
    Generating labels...
    Generating disassembly.............................................................
    Spoiler:
     
    Same deal, you just don't have the path to Python in your PATH Environment Variable.
    I just gave it a try myself, and mgbdis is working normally.
    Code:
    C:\Users\lun0s\Desktop\mgbdis-master>python mgbdis.py pkmnred.gb
    Loading "pkmnred.gb"...
    ROM MD5 hash: 3d45c1ee9abd5738df46d2bdda8b57dc
    Generating labels...
    Generating disassembly.............................................................
    Spoiler:

    then please send me the link to download the right python please
    ty!
     
    ok so i finally disassembled it but it doesnt show the images :c
    Naturally. The only thing the disassembler retrieves is code.
    You'll need to dump the visual assets somehow else, set up a linker on your own, etc.

    This is by no means a thing you should be trying to do without extensive knowledge about the assembly language and reverse engineering.
     
    Back
    Top