From df411b4ede4740336464681e08cd4539d0a1719a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 7 Oct 2018 16:40:32 -0400 Subject: [PATCH] Corrects storage of visible sprites. --- Components/9918/Implementation/9918Base.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/9918/Implementation/9918Base.hpp b/Components/9918/Implementation/9918Base.hpp index 873e9b05b..c9b1e1243 100644 --- a/Components/9918/Implementation/9918Base.hpp +++ b/Components/9918/Implementation/9918Base.hpp @@ -616,7 +616,7 @@ class Base { #define sprite_y_read(location, sprite) \ slot(location): \ posit_sprite(sprite, ram_[(sprite_attribute_table_address_ | 0x7f) & (sprite | 0x3f00)], row_); \ - posit_sprite(sprite, ram_[(sprite_attribute_table_address_ | 0x7f) & ((sprite + 1) | 0x3f00)], row_); \ + posit_sprite(sprite+1, ram_[(sprite_attribute_table_address_ | 0x7f) & ((sprite + 1) | 0x3f00)], row_); \ #define fetch_tile_name(column) {\ const size_t scrolled_column = (column - horizontal_offset) & 0x1f;\