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 by<_Hyde_>
Posted on7/11/03 7:21 PM
From IP207.93.143.26  



1. The way you figure out the amount of CPU cycles executed during VBlank is as follows:

A scanline is equivalent to 341 PPU cycles. During the VBlank period, the CPU runs 20 scanlines worth of cycles. Thus the amount of PPU cycles executed during this period is 341*20 = 6820. 6820 PPU cycles = 2273.333... CPU cycles, which is the number that you are looking for.

2. Here is a diagram that might help you...















ScanlineNTSC NES's doings
0VBlank starts
20VBlank ends. Visible portion of a frame begins here (assuming BG and SP are enabled)
21First scanline to be rendered (any data processed here is not visible)
260Last scanline to be rendered
261PPU does nothing here (no data is actually processed)


Thus the VBlank flag should be cleared during scanline 20. For more info on this read Brad Taylor's docs on the PPU.

You should assume that the NES starts on scanline 20 and not on scanline 0 (VBlank) as soon as you turn it on.

http:// hydesprojects.cjb.net

-
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