From 3029ace7b09eda3e0c3586742ee80c54e4dddc55 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 7 May 2023 15:33:25 +0300 Subject: Add 3_sprites demo --- 2_scroll_planes/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '2_scroll_planes') 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 } -- cgit v1.2.3