GithubHelp home page GithubHelp logo

mika412 / noobboy Goto Github PK

View Code? Open in Web Editor NEW
273.0 5.0 12.0 1.79 MB

A simple GameBoy emulator written in C++

License: GNU General Public License v3.0

C++ 78.51% C 0.15% CMake 17.51% Assembly 3.83%
emulation emulator game-boy gameboy gameboy-emulator linux nintendo-gameboy

noobboy's Introduction

NoobBoy - GameBoy Emulator

NoobBoy is a simple gameboy emulator that I'm writing to learn more about the world of emulation. This emulator has nothing special and has no extra features compared to other DMG emulators.

Usage

To build the project, cmake, SDL2 and SDL2 ttf are required. The SDL2 cmake files are already included, as in some systems cmake can't find the packages. The emulator was tested on Linux and MacOS.

Building

$ cmake .
$ make

Running

usage: ./NoobBoy --rom <rom_file> [--bootrom <bootrom_file>] [--load-save <save_file>] [--debug] [--sound] [--no-bootrom]

arguments:
  --rom                     Standard GameBoy rom
  --bootrom                 Load a custom DMG bootrom
  --debug                   Enable the debugger
  --load-save               Save file to load
  --sound                   Enable experimental sound
  --no-bootrom              Start without bootrom

Input

Gameplay Debug
Action Key
UP
DOWN
LEFT
RIGHT
B x
A z
START Space
SELECT Enter
Action Key
Save game s
Toggle color palette c
Pause/Resume p
CPU step n
Toggle sound m
Exit Escape

Features

  • Sound (WIP)
  • Correct instructions and PPU timings
  • Correct scanline timing
  • Sprites with correct row limitations
  • Correct sprite, window and background pixel priority
  • VRAM rendering with X/Y scroll overlay
  • Memory Bank Controller (MBC)
  • Debug mode
  • Save states (dump of external RAM banks)
  • Custom bootrom (Based on ISSOtm/gb-bootroms work)

Currently, the halt bug is missing because of some incorrect interrupt timings.

Game Screenshots

space-1.jpg space-1.jpg
Blargg's CPU Instructions Test Tetris
space-1.jpg space-1.jpg
The Legend of Zelda - Link's Awakening Pokemon Blue
space-1.jpg space-1.jpg
Donkey Kong Land Castlevania

NOTE: Some games may not work due to some missing MBC features.

noobboy's People

Contributors

mika412 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  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.