diff options
Diffstat (limited to '2_scroll_planes')
| -rw-r--r-- | 2_scroll_planes/main.c | 3 | 
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      } | 
