summaryrefslogtreecommitdiff
path: root/2_scroll_planes/main.c
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-07 15:33:25 +0300
committerOxore <oxore@protonmail.com>2023-05-07 15:33:25 +0300
commit3029ace7b09eda3e0c3586742ee80c54e4dddc55 (patch)
treea50910600cf67e9eafed2f98ebce6bb0ec65d3ae /2_scroll_planes/main.c
parentd39090b6a94b7c1700d190a1bb63e85ff1c1f4ad (diff)
Add 3_sprites demo
Diffstat (limited to '2_scroll_planes/main.c')
-rw-r--r--2_scroll_planes/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/2_scroll_planes/main.c b/2_scroll_planes/main.c
index 421b6c3..58ff94d 100644
--- a/2_scroll_planes/main.c
+++ b/2_scroll_planes/main.c
@@ -24,7 +24,7 @@
#define VRAM_ADDR_TILES (0x0000)
#define VRAM_ADDR_PLANE_A (0xC000)
#define VRAM_ADDR_PLANE_B (0xE000)
-#define VRAM_ADDR_HSCROLL (0xFC00) // NEW to this demo - Horizonal Scroll table address
+#define VRAM_ADDR_HSCROLL (0xFC00) // NEW to this demo - Horizonal Scroll table address
// Screen width and height (in pixels)
#define VDP_SCREEN_WIDTH (0x0140)
@@ -355,6 +355,7 @@ int main(void)
// Write the font glyph tiles to VRAM
for (size_t i = 0; i < TILE_COUNT * SIZE_TILE_L; i++) {
+ // Write tile line (4 bytes per line), and post-increment address
*(volatile uint32_t*)VDP_DATA = characters[i]; // Write palette entry
}