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
(added link to official dev manual)
(clarify that we are not necessarily talking about scanline 0)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''Repeat Flag''' is involved with [[HDMA]].  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>


=== Reference ===
When set, the HDMA controller sends a single transfer unit to the destination every [[scanline]], during [[hblank]].
* [https://archive.org/details/SNESDevManual/book1/page/n151 page 2-28-13 of Book I] of the official Super Nintendo development manual
 
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 ===
# [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
# 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