Git Product home page Git Product logo

windfish's Introduction

Windfish

Windfish is a disassembler for Gameboy ROMs that can generate RBGDS-compatible assembly code.

Background

This project was initiated to support archaelogical efforts aimed at understanding the implementation details behind Link's Awakening for the original Gameboy. The project has since grown to be a general disassembler for Gameboy ROMs.

The name "Windfish" is a reference to the main focus of the Link's Awakening storyline.

Overview

The core design principle of the Windfish disassembler is to maximize legibility of generated assembly code with minimal configuration.

Windfish supports several powerful features for disassembling Gameboy ROMs, including:

  • Control-flow disassembly: Able to follow branches in control flow in order to distinguish code from binary data.
  • Memory bank awareness: Bank changes are monitored so that jumps to 0x4000-0x7999 memory regions can move to the correct bank.
  • Regions: Text, image (2bpp, 1bpp), and data regions can be registered enabling a rich representation of the disassembly in the Windfish IDE.
  • Data types: Custom datatypes can be registered and, when detected, automatically referenced in the generated assembly to improve code readability.
  • Globals: Global variables can be registered and referred to within the generated assembly.
  • Macros: Common assembly patterns can be registered and, when detected, generated as RGBDS macros.
  • Scope awareness: Contiguous blocks of scope are inferred during disassembly.

IDE

The frontend for Windfish

The Windfish disassembler is best invoked through the IDE which is integrated closely with the powerful Sameboy emulator and debugger.

Features of the IDE:

  • Full Sameboy debugger integration: See https://sameboy.github.io/debugger/ for complete documentation on the debugger.
  • Full Sameboy emulation: This enables a tight feedback loop where emulation can be used to increase your understanding of the disassembly.
  • Configuration editing: Edit regions, data types, globals, and macros from the IDE.
  • Labeled callstack: The labels are read directly from the full-context disassembly.
  • Tooltip documentation: Documentation for instructions can be seen by hovering over the instruction.
  • Function scope visualization: Function scopes are shown as a contiguous line alongside the source.
  • Selected bank visualization: The selected bank is shown alongside each instruction.

Learn more

Learn more about the Windfish architecture.

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.