Git Product home page Git Product logo

nesldr-py's Introduction

Nintendo Entertainment System (NES) loader module

Author: @patois, ported to IDAPython by: @Jinmo

IDA Pro loader module for Nintendo Enternainment System (NES) ROM images in iNES file format.

Please note that the real NES hardware memory area ends after 0xFFFF as it can address 16bit only. The NES hardware uses several page/bank swapping mechanisms in order to load additional ROM banks. This loader loads a maximum number of two 16k PRG ROM banks into the IDA database, respecting the original memory layout. This significantly improves the disassembly on the one hand, but as a consequence doesn't allow the ROM to be reassembled in one step on the other.

Installation

Copy the loader to %idadir%/loaders/nes.py, and %idadir%/loaders/nesldr.

Information for developers

A copy of the input file is stored within the IDA Pro database by the loader. This allows all parts of the ROM to be accessed via netnodes.

Example:

The original iNES header is stored in a netnode (INES_HDR_NODE). It can be accessed programmatically by reading the netnode's blob as shown below.

#include "nes.h"

netnode node(INES_HDR_NODE);
ines_hdr hdr;

node.getblob(&hdr, &INES_HDR_SIZE, 0, 'I');

nesldr-py's People

Contributors

jinmo avatar patois avatar salhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

patois lsj8924 salhe

nesldr-py's Issues

Installation instruction for 7.2

Could you please modify readme to include installation instruction for 7.2 ? There are no %idadir%/cfg/templates.xml in my installation. Also I'm not sure what you mean Copy compiled loader to %idadir%/loaders/nes.ldw. ldw files are usually binary plugins but there are no .ldw files in this repo.

Thanks!

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.