Skip to content

Commit

Permalink
Deploying to gh-pages from @ 34c1270 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
avivace committed Mar 24, 2024
1 parent 7cb48f5 commit 85afce8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion graphics.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h3 id="mode-3"><a class="header" href="#mode-3">Mode 3</a></h3>
<p>Standard 16-bit bitmapped (non-paletted) 240x160 mode. The map starts at <code>0x06000000</code> and is <code>0x12C00</code> bytes long. See the <a href="#color-format">Color Format</a> table above for the format of these bytes.</p>
<p>This allows the full color range to be displayed at once. Unfortunately, the frame buffer in this mode is too large for page flipping to be possible. One option to get around this would be to copy a frame buffer from work RAM into VRAM during the retrace, or (so I have heard) to use <a href="registers.html#REG_DMA3CNT">DMA3</a> with the start mode bits set to 11.</p>
<h3 id="mode-4"><a class="header" href="#mode-4">Mode 4</a></h3>
<p>8-Bit paletted bitmapped mode at 240x160. The bitmap starts at either <code>0x06000000</code> or <code>0x0600A000</code>, depending on bit 3 of <a href="registers.html#REG_DISPCNT">REG_DISPCNT</a>. Swapping the map and drawing in the one that isn't displayed allows for page flipping techniques to be used. The palette is at <code>0x05000000</code>, and contains 256 16-bit [color entries](#Color Format).</p>
<p>8-Bit paletted bitmapped mode at 240x160. The bitmap starts at either <code>0x06000000</code> or <code>0x0600A000</code>, depending on bit 4 of <a href="registers.html#REG_DISPCNT">REG_DISPCNT</a>. Swapping the map and drawing in the one that isn't displayed allows for page flipping techniques to be used. The palette is at <code>0x05000000</code>, and contains 256 16-bit <a href="#color-format">color entries</a>.</p>
<h3 id="mode-5"><a class="header" href="#mode-5">Mode 5</a></h3>
<p>This is another 16-bit bitmapped mode, but at a smaller resolution of 160x128. The display starts at the upper left hand corner of the screen, but can be shifted using the rotation and scaling registers for BG2. The advantage of using this mode is presumably that there are two frame buffers available, and this can be used to perform page flipping effects which cannot be done in mode 3 due to the smaller memory requirements of mode 5. Bit 3 of <a href="registers.html#REG_DISPCNT">REG_DISPCNT</a> sets the start of the frame buffer to <code>0x06000000</code> when bit 3 is zero, and <code>0x0600A000</code> when bit 3 is one.</p>
<h2 id="color-format"><a class="header" href="#color-format">Color Format</a></h2>
Expand Down
2 changes: 1 addition & 1 deletion print.html
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ <h3 id="mode-3"><a class="header" href="#mode-3">Mode 3</a></h3>
<p>Standard 16-bit bitmapped (non-paletted) 240x160 mode. The map starts at <code>0x06000000</code> and is <code>0x12C00</code> bytes long. See the <a href="graphics.html#color-format">Color Format</a> table above for the format of these bytes.</p>
<p>This allows the full color range to be displayed at once. Unfortunately, the frame buffer in this mode is too large for page flipping to be possible. One option to get around this would be to copy a frame buffer from work RAM into VRAM during the retrace, or (so I have heard) to use <a href="registers.html#REG_DMA3CNT">DMA3</a> with the start mode bits set to 11.</p>
<h3 id="mode-4"><a class="header" href="#mode-4">Mode 4</a></h3>
<p>8-Bit paletted bitmapped mode at 240x160. The bitmap starts at either <code>0x06000000</code> or <code>0x0600A000</code>, depending on bit 3 of <a href="registers.html#REG_DISPCNT">REG_DISPCNT</a>. Swapping the map and drawing in the one that isn't displayed allows for page flipping techniques to be used. The palette is at <code>0x05000000</code>, and contains 256 16-bit [color entries](#Color Format).</p>
<p>8-Bit paletted bitmapped mode at 240x160. The bitmap starts at either <code>0x06000000</code> or <code>0x0600A000</code>, depending on bit 4 of <a href="registers.html#REG_DISPCNT">REG_DISPCNT</a>. Swapping the map and drawing in the one that isn't displayed allows for page flipping techniques to be used. The palette is at <code>0x05000000</code>, and contains 256 16-bit <a href="graphics.html#color-format">color entries</a>.</p>
<h3 id="mode-5"><a class="header" href="#mode-5">Mode 5</a></h3>
<p>This is another 16-bit bitmapped mode, but at a smaller resolution of 160x128. The display starts at the upper left hand corner of the screen, but can be shifted using the rotation and scaling registers for BG2. The advantage of using this mode is presumably that there are two frame buffers available, and this can be used to perform page flipping effects which cannot be done in mode 3 due to the smaller memory requirements of mode 5. Bit 3 of <a href="registers.html#REG_DISPCNT">REG_DISPCNT</a> sets the start of the frame buffer to <code>0x06000000</code> when bit 3 is zero, and <code>0x0600A000</code> when bit 3 is one.</p>
<h2 id="color-format"><a class="header" href="#color-format">Color Format</a></h2>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 85afce8

Please sign in to comment.