Hi, everyone!
Okay, first of all, I apologize in advance if you have any problems with reading this post caused due to my english language skills.
Back to the topic... A few weeks ago I started a project of my own NES emulator. I already finished the CPU emulation and I'm currently working on a PPU emulation and screen display. However, when I test it, things seem to behave quite weird.
I'm going to describe my problem and show you a few examples.
The title screen in Super Mario Bros. 1 is not rendering in a proper way:
Also there are those garbage tiles during demo play:
But during a normal gameplay, everything displays properly:
Battle City's title screen seems to suffer from a same problem:
But the game is completely unplayable:
In Mappy, when you walk on a flat floor, you suddenly fall through it and loses a life and in Pacman you can eat walls and escape the maze.
Another weird thing is when I tested my emulator with a Nestest, it passed all documented opcodes tests.
But when I run any of Blargg's CPU opcode test ROMs, it failes and in result I get an unreadable garbage.
I double checked all the CPU code, opcodes execution, addresing modes, JMPs, JSR, NMI and couldn't manage to find any bug that would cause those kinds of glitches. ROMs are not corrupted in any way and the read buffer during the $2007 read is implemented correctly.
Also please, don't pay much attention to the incorrect color assignment and white dots, I haven't implemented tile coloring based on attribute tables yet and sprites are temporarily represented as dots.
Thank you in advance for any ideas and your help ^-^
Okay, first of all, I apologize in advance if you have any problems with reading this post caused due to my english language skills.
Back to the topic... A few weeks ago I started a project of my own NES emulator. I already finished the CPU emulation and I'm currently working on a PPU emulation and screen display. However, when I test it, things seem to behave quite weird.
I'm going to describe my problem and show you a few examples.
The title screen in Super Mario Bros. 1 is not rendering in a proper way:
Also there are those garbage tiles during demo play:
But during a normal gameplay, everything displays properly:
Battle City's title screen seems to suffer from a same problem:
But the game is completely unplayable:
In Mappy, when you walk on a flat floor, you suddenly fall through it and loses a life and in Pacman you can eat walls and escape the maze.
Another weird thing is when I tested my emulator with a Nestest, it passed all documented opcodes tests.
But when I run any of Blargg's CPU opcode test ROMs, it failes and in result I get an unreadable garbage.
I double checked all the CPU code, opcodes execution, addresing modes, JMPs, JSR, NMI and couldn't manage to find any bug that would cause those kinds of glitches. ROMs are not corrupted in any way and the read buffer during the $2007 read is implemented correctly.
Also please, don't pay much attention to the incorrect color assignment and white dots, I haven't implemented tile coloring based on attribute tables yet and sprites are temporarily represented as dots.
Thank you in advance for any ideas and your help ^-^