diff --git a/README.md b/README.md index ac48222..4fe9e63 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ OOPBoy is a working, fast, and cross-platform Nintendo Game Boy emulator written The following games are perfectly playable as far as we can tell: - The Legend of Zelda: Link's Awakening - Super Mario Land +- Super Mario Land 2 - Tetris - Tetris DX - Pokemon - Red Version @@ -30,10 +31,9 @@ The following games are perfectly playable as far as we can tell: The following games play with major graphical glitches: - Kirby's Dream Land +- Donkey Kong The following games do not play at all: -- Donkey Kong -- Super Mario Land 2 - Super Mario Land 3: Wario Land - Tennis diff --git a/src/org/the429ers/gameboy/PPU.java b/src/org/the429ers/gameboy/PPU.java index 2032bcc..916b71a 100644 --- a/src/org/the429ers/gameboy/PPU.java +++ b/src/org/the429ers/gameboy/PPU.java @@ -11,6 +11,7 @@ public class PPU implements Serializable, IPPU { * */ private static final long serialVersionUID = 2887802651514454071L; + private boolean enabled = true; private TileSet tileset1; private TileSet tileset2; private TileMap map; @@ -152,6 +153,8 @@ else if (cycleCount == 0) { scrollX = mem.readByte(0xFF43); int lcdc = mem.readByte(0xff40); spritesEnabled = BitOps.extract(lcdc, 1, 1) == 1; + enabled = BitOps.extract(lcdc, 7, 7) == 1; + if(!enabled) return; //spritesEnabled = true; if (cycleCount == OAM_SEARCH_START) {