NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectClarifications needed...  
Posted by<_Hyde_>
Posted on9/23/04 12:58 PM
From IP204.102.252.147  



Here's how my emulator handles such IRQs: It does not check the VRAM address (PPU registers) for an A12 rising edge. What it does is it checks for the address of the pattern tables themselves, selected by $2000 I believe. So, if the bg pattern address is set to $0000, and sp pattern address is set to $1000, then an IRQ will occur. I don't think this is the correct way of emulating the interrupts, but it sure makes Crystallis and Kick Master work. I too thought of A12 being the fine vertical scroll value, which is incremented at the end of every scanline. Following the current logic on how the IRQs work, the registers would have to be stored elsewhere, since right on cycle 260 the PPU starts fetching object data for the next scanline. Am I missing something, or is there some other sort of address controller I am not thinking about?

Here are other issues I've come accross with throughout the last few months: It seems like the fine vertical counter is not incremented at PPU cycle 256. I've tried incrementing the counter at different times, both before and after cycle 256, and it seems like the incrementation takes place *before* cycle 256. My guess is that it takes place right on cycle 251, since by incrementing it there, games like Crystallis and Wolverine will work just fine. Nestopia can't handle the status bar display in Wolverine correctly (it shakes), and so couldn't my emulator; but when I played around with the cycle number at which the counter should be updated, the game began to work correctly. Cycle 256 seems to be when the horizontal counters get updated.

One last thing: someone needs to clarify the precise behaviour of the OAM address during the data fetching/rendering process: does it change at all, and if so, is it predictable?

hydesprojects.cjb.net

-
Entire Thread
Subject  Posted byPosted On
*VScroll, MMC3 IRQs, 8x16 sprites  Disch9/22/04 8:45 PM
..Clarifications needed...  <_Hyde_>9/23/04 12:58 PM
..*Re: Clarifications needed...  Fx39/23/04 3:31 PM
...*Re: Clarifications needed...  <_Hyde_>9/23/04 10:48 PM
....*Re: Clarifications needed...  Nessie9/24/04 04:36 AM
.....*Re: Clarifications needed...  <_Hyde_>9/24/04 12:35 PM
......*Re: Clarifications needed...  Nessie9/24/04 2:00 PM
.......*Re: Clarifications needed...  <_Hyde_>9/25/04 3:20 PM
........*Re: Clarifications needed...  Nessie9/25/04 4:57 PM
.......*Re: Clarifications needed...  Anonymous9/24/04 2:15 PM
........*Re: Clarifications needed...  Nessie9/24/04 5:46 PM
.........*Re: Clarifications needed...  Fx39/24/04 6:37 PM
..........*Re: Clarifications needed...  Nessie9/24/04 8:14 PM
.....*Re: Clarifications needed...  Anonymous9/24/04 09:46 AM
......*Re: Clarifications needed...  Fx39/24/04 4:12 PM
.....*Re: Clarifications needed...  Fx39/24/04 08:30 AM
......*Re: Clarifications needed...  <_Hyde_>9/24/04 12:40 PM
.......*Re: Clarifications needed...  Fx39/24/04 4:13 PM
...*Re: Clarifications needed...  Anonymous9/23/04 7:06 PM
....*Re: Clarifications needed...  Fx39/23/04 7:20 PM
.....*Re: Clarifications needed...  Disch9/23/04 7:32 PM
......*Re: Clarifications needed...  Fx39/23/04 8:45 PM
.*Re: VScroll, MMC3 IRQs, 8x16 sprites  Nessie9/22/04 11:34 PM
..*Re: VScroll, MMC3 IRQs, 8x16 sprites  Disch9/23/04 10:33 AM
...*Re: VScroll, MMC3 IRQs, 8x16 sprites  Fx39/23/04 3:28 PM
...*Re: VScroll, MMC3 IRQs, 8x16 sprites  Memblers9/23/04 11:26 AM
....*Re: VScroll, MMC3 IRQs, 8x16 sprites  Disch9/23/04 3:03 PM
.*Re: VScroll, MMC3 IRQs, 8x16 sprites  Fx39/22/04 9:26 PM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo