diff --git a/src/test.c b/src/test.c index ff6be18..5319c9e 100644 --- a/src/test.c +++ b/src/test.c @@ -118,7 +118,7 @@ static void image_copy(cammy_sram_frame *frame, uint8_t *buf) { uint32_t to = (slot & 0x00030000) >> 16; uint8_t value; - if (slot & (0x8000 >> (x & 0x03) >> (y & 0x03))) { + if (slot & (0x8000 >> (x & 0x03) >> ((y & 0x03) << 2))) { value = to ^ 0x03; } else { value = from ^ 0x03;