We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Continue Flag: Difference between revisions

From SnesLab
Jump to: navigation, search
(improve description)
(clarify that we are not necessarily talking about scanline 0)
 
Line 1: Line 1:
The '''Continue Flag''' tells the [[HDMA]] controller whether to continue transferring data after the first transfer unit.  It is bit 7 of NTRLx.
The '''Continue Flag''' tells the [[HDMA]] controller whether or not to continue transferring data after the first transfer unit in an [[HDMA table]] entry has been transferred.  It is bit 7 of NTRLx, and like the rest of that register, is loaded from the current HDMA table entry.<sup>[4]</sup>


When set, the DMA controller sends a single transfer unit to the destination for every [[scanline]], during [[hblank]].
When set, the HDMA controller sends a single transfer unit to the destination every [[scanline]], during [[hblank]].


When clear, the DMA controller sends a transfer unit to the destination just once, for the first scanline, and then does not transfer anything else at least until reaching the Nth scanline, where N was the initial value of the [[HDMA Scanline Counter]].
When clear, the HDMA controller sends a transfer unit to the destination just once, for the first scanline of that entry in the HDMA table, and then does not transfer anything else at least until reaching the Nth next scanline, where N was the initial value of the [[HDMA Scanline Counter]], the bottom 7 bits of NTRLx.


=== References ===
=== References ===
* [https://archive.org/details/SNESDevManual/book1/page/n151 page 2-28-13 of Book I] of the official Super Nintendo development manual
# [https://archive.org/details/SNESDevManual/book1/page/n151 page 2-28-13 of Book I] of the official Super Nintendo development manual
* the bit cells labeled "C" in the diagrams are the continue flag: [https://archive.org/details/SNESDevManual/book1/page/n219 Appendix B-2 of Book I], lbid
# the bit cells labeled "C" in the diagrams are the continue flag: [https://archive.org/details/SNESDevManual/book1/page/n219 Appendix B-2 of Book I], lbid
* https://wiki.superfamicom.org/grog's-guide-to-dma-and-hdma-on-the-snes
# https://wiki.superfamicom.org/grog's-guide-to-dma-and-hdma-on-the-snes
# https://problemkaputt.de/fullsnes.htm#snesdmaandhdmachannel07registers


[[Category:Flags]]
[[Category:Flags]]
[[Category:SNES Hardware]]
[[Category:SNES Hardware]]

Latest revision as of 05:51, 27 July 2023

The Continue Flag tells the HDMA controller whether or not to continue transferring data after the first transfer unit in an HDMA table entry has been transferred. It is bit 7 of NTRLx, and like the rest of that register, is loaded from the current HDMA table entry.[4]

When set, the HDMA controller sends a single transfer unit to the destination every scanline, during hblank.

When clear, the HDMA controller sends a transfer unit to the destination just once, for the first scanline of that entry in the HDMA table, and then does not transfer anything else at least until reaching the Nth next scanline, where N was the initial value of the HDMA Scanline Counter, the bottom 7 bits of NTRLx.

References

  1. page 2-28-13 of Book I of the official Super Nintendo development manual
  2. the bit cells labeled "C" in the diagrams are the continue flag: Appendix B-2 of Book I, lbid
  3. https://wiki.superfamicom.org/grog's-guide-to-dma-and-hdma-on-the-snes
  4. https://problemkaputt.de/fullsnes.htm#snesdmaandhdmachannel07registers