Coder Social home page Coder Social logo

gameboy-emulator's Introduction

Gameboy Emulator

Gameboy Emulator (DMG) written in Rust.This emulator aims to emulate in a cycle-accurate way the behaviour of the first gameboy model. It uses a central bus architecture and RAM splitting to remove the components' need to know details about other components.

Gifs

Pokemon Tetris
pokemon tetris

How to run

  1. Clone the repository
  2. Execute "cargo run <ROM path>"

Supported features in the current version

Component CPU PPU Joypad Screen Timers Interrupts DMA MBC1 MBC2 MBC3 MBC5 Serial APU
Supported

Passed tests in the current version

Please note that I have only run the tests relevant to the DMG and not other gameboy models.

Blargg tests
Test Passed
cpu_instrs/
dmg_sound/
instr_timing/
mem_timing/
mem_timing-2/
oam_bug.gb
halt_bug.gb
Mooneye tests
Test Passed
bits/mem_oam.gb
bits/reg_f.gb
bits/unused_hwio-GS.gb
instr/daa.gb
interrupts/ie_push.gb
oam_dma/basic.gb
oam_dma/reg_read.gb
oam_dma/sources-GS.gb
ppu/hblank_ly_scx_timing-GS.gb
ppu/intr_1_2_timing-GS.gb
ppu/intr_2_0_timing.gb
ppu/intr_2_mode0_timing.gb
ppu/intr_2_mode0_timing_sprites.gb
ppu/intr_2_mode3_timing.gb
ppu/intr_2_oam_ok_timing.gb
ppu/lcdon_timing-GS.gb
ppu/lcdon_write_timing-GS.gb
ppu/stat_irq_blocking.gb
ppu/stat_lyc_onoff.gb
ppu/vblank_stat_intr-GS.gb
serial/boot_sclk_align-dmgABCmgb.gb
timer/div_write.gb
timer/rapid_toggle.gb
timer/tim00.gb
timer/tim00_div_trigger.gb
timer/tim01.gb
timer/tim01_div_trigger.gb
timer/tim10.gb
timer/tim10_div_trigger.gb
timer/tim11.gb
timer/tim11_div_trigger.gb
timer/tima_reload.gb
timer/tima_write_reloading.gb
timer/tma_write_reloading.gb
add_sp_e_timing.gb
boot_div-dmgABCmgb.gb
boot_hwio-dmgABCmgb.gb
boot_regs-dmgABC.gb
call_cc_timing.gb
call_cc_timing2.gb
call_timing.gb
call_timing2.gb
di_timing-GS.gb
div_timing.gb
ei_sequence.gb
ei_timing.gb
halt_ime0_ei.gb
halt_ime0_nointr_timing.gb
halt_ime1_timing.gb
halt_ime1_timing2-GS.gb
if_ie_registers.gb
intr_timing.gb
jp_cc_timing.gb
jp_timing.gb
ld_hl_sp_e_timing.gb
oam_dma_restart.gb
oam_dma_start.gb
oam_dma_timing.gb
pop_timing.gb
push_timing.gb
rapid_di_ei.gb
ret_cc_timing.gb
ret_timing.gb
reti_intr_timing.gb
reti_timing.gb
rst_timing.gb

gameboy-emulator's People

Contributors

rbtms avatar

Stargazers

 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.