Search found 5 matches

by been_jamin
Fri Jan 20, 2017 11:53 pm
Forum: NESemdev
Topic: $2002 reads
Replies: 10
Views: 6015

Re: $2002 reads

Welp, going pure C for pure speed. So using classes won't work, but I'll definitely think about making a Bus structure. Thanks!
by been_jamin
Fri Jan 20, 2017 11:41 pm
Forum: NESemdev
Topic: PPU Rendering Techniques
Replies: 1
Views: 3902

PPU Rendering Techniques

Hi everyone, I'm writing an nes emulator and just finished the cpu. I was looking at general structures for updating the screen; so far I have seen: 1. render 3 pixels every cpu cycle; supposed to be very accurate but also slow 2. render a scanline at a time; maintains some accuracy but and speeds u...
by been_jamin
Wed Jan 18, 2017 8:32 pm
Forum: NESemdev
Topic: $2002 reads
Replies: 10
Views: 6015

Re: $2002 reads

Oh, and one more question: The reads that reset the register include reads performed by indirect addressing etc. right?
by been_jamin
Wed Jan 18, 2017 8:19 pm
Forum: NESemdev
Topic: $2002 reads
Replies: 10
Views: 6015

Re: $2002 reads

Right, but just reading straight from the register using an array like the way I said is problematic still because now I have no way of telling when the cpu reads from $2002, right? Is there any way I can avoid having to rewrite so much of my code?
by been_jamin
Wed Jan 18, 2017 8:03 pm
Forum: NESemdev
Topic: $2002 reads
Replies: 10
Views: 6015

$2002 reads

I have just finished programming the NES processor in C, and was reading http://wiki.nesdev.com/w/index.php/PPU_registers#PPUSTATUS for information about the PPU so I can begin programming it. There it says that the VBlank bit gets reset after every read from the $2002 status register. I had already...