Code Monkey home page Code Monkey logo

nes-unexecuted's Introduction

nes-unexecuted

Find unexecuted code in a NES game

Overview

Given a build of a NES game with a labels text file (from ld65) and a CDL output file (from FCEUX or MESEN), this script will find ROM addresses that were not accessed.

Usage

nes_unexecuted.py labels.txt file.cdl [show-addr]

where:

  • labels.txt is the labels file output from ld65 (use the -Ln option)
  • file.cdl is a Code Data Logger file generated with FCEUX or MESEN
  • show-addr is an optional parameter that tells the script to output specific byte addresses as well as labels.

Output

The output of the tool will show the labels (and optionally specific addresses) where at least one byte was not accessed while the CDL file was logged.

Generating the CDL file

Here's how to use FCEUX to generate the CDL file needed for this tool:

  1. Open FCEUX and load the NES game
  2. Debug > Code/Data Logger...
  3. Code Data Logger window > Reset Log
  4. Code Data Logger window > Start
  5. Play the game, covering all relevant scenarios
  6. Code Data Logger window > Pause
  7. Code Data Logger window > Save

Here's how to use MESEN to generate the CDL file needed for this tool:

  1. Open MESEN and load the NES game
  2. Debug > Debugger
  3. Debugger > Tools > Code/Data Logger > Reset Log
  4. Play the game, covering all relevant scenarios
  5. Debugger > Tools > Code/Data Logger > Save as CDL file...

Thanks

Thanks to everyone on this NESDev forum post who pointed me in the right direction!

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

nes-unexecuted's People

Contributors

matthewjustice avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.