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

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: More in general..  
Posted byquietust
Posted on7/6/03 11:26 PM



1. There are 262 scanlines per frame, and 113+2/3 cycles per scanline. This multiplies out to 29780+2/3 CPU cycles per frame, but this approach will not work for any game that does mid-screen scrolling (i.e. for a status bar). The generally accepted approach to emulating the NES is to run the CPU for 113+2/3 cycles (or 114, 114, then 113) and then run the PPU for 1 scanline - this approach will work for a vast majority of games without problems.

2. If you're doing vertical scrolling, the end of the nametable and the bottom of the screen will NOT be the same! The proper time to generate NMI is exactly 1 scanline after the last visible scanline (240 total) is rendered.

3. The 256 bytes of SPR-RAM are separate from the PPU's address space; they can be accessed via the PPU's I/O registers $2003 (to set the address) and $2004 (to read/write data and auto-increment the address). Most games will perform a Sprite DMA by writing a page number ($xx to point to $xx00-$xxFF) to $4014; in reality, this simply performs rapid reads (from the page specified) and writes to $2004 (which is at least 4 times faster than doing it manually).

--
Quietust
P.S. If you don't get this note, let me know and I'll write you another.

-
Entire Thread
Subject  Posted byPosted On
*More in general..  Muchaserres7/6/03 8:02 PM
..Re: More in general..  quietust7/6/03 11:26 PM
..*Re: More in general..  Muchaserres7/7/03 7:07 PM
...*Re: More in general..  Memblers7/7/03 8:36 PM
...*Re: More in general..  quietust7/7/03 8:36 PM
....*Re: More in general..  Muchaserres7/8/03 5:01 PM
.....*Re: More in general..  quietust7/8/03 8:18 PM
......*Re: More in general..  Muchaserres7/9/03 4:59 PM
.......*Re: More in general..  Memblers7/9/03 5:47 PM
........*Re: More in general..  Muchaserres7/11/03 5:38 PM
.........*Re: More in general..  <_Hyde_>7/11/03 7:21 PM
..........*Re: More in general..  quietust7/11/03 9:23 PM
...........*Re: More in general..  Muchaserres7/12/03 1:47 PM
............*Re: More in general..  Muchaserres7/12/03 3:09 PM
.............*Re: More in general..  quietust7/12/03 6:35 PM
..............*Re: More in general..  Muchaserres7/12/03 11:48 PM
...............*Re: More in general..  Muchaserres7/13/03 08:55 AM
................*Re: More in general..  Muchaserres7/14/03 10:44 AM
.................*Re: More in general..  RoboNes7/14/03 12:36 PM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo