Code Monkey home page Code Monkey logo

goodboy's Introduction

GoodBoy

Because he's a Good Boy

He's a Good Boy

GoodBoy is a (yet another) gameboy emulator. The goal of this project is to learn more about emulation and to (hopefully) learn how to write clean & modern C++ code.

Status

Currently the CPU core passes all of blargg's CPU instruction tests. It can play Tetris, Dr. Mario, Kirby's Dream Land, Kirby's Pinball Land, Pokemon Red, Super Mario Land, Pokemon Gold, The Legend of Zelda - Link's Awakening, Donkey Kong & Warioland II. But those are the only games I've tried so it can likely play other games. Currently MBC1, MBC2, MBC3 & MBC5 ROMS seem to work. There is a pretty cool debugger mode; more details below.

Build

cmake and sfml are required to build this project. To build, run the following commands:

mkdir build
cmake ..
make

To run a ROM:

./goodboy <rom file>

Debugger

GoodBoy has a debugger mode and tracing mode. To enable CPU instruction tracing you can use the -t option:

./goodboy -t <rom file>

To run the debugger mode you can use the -d option:

./goodboy -d <rom file>

For help on more options, please use the -h option.

The GoodBoy debugger is an ncurses terminal app and supports the following features:

  • Halting and resuming execution
  • Single stepping through instructions
  • Dumping register state
  • Modifying and viewing single registers (8-bit and 16-bit registers are both supported)
  • Modifying and viewing a single memory location
  • Scrolling support to view complete trace in the terminal
  • Breakpoints
  • Watchpoints
  • Saving trace to file
  • Dumping OAM memory and viewing sprite tiles (from inside the terminal)
  • Dumping background and window maps and viewing tiles (also from inside the terminal)

For command usage, type h in the debugger.

goodboy's People

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.