Skip to content

Commit

Permalink
Fix address wrapping error in 3-bit graphics mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Memotech-Bill committed Jan 30, 2024
1 parent c627e39 commit b5c8d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memu/mfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ static void s8_refresh (void)
// printf ("Copy from %ld to %ld\n", data - mfx_win->data - WIDTH, data - mfx_win->data);
memcpy (data, data - WIDTH, WIDTH);
data += WIDTH;
addr += 8;
addr = (addr + 8) & 0x7FFF;
if ( ++scan == 10 ) scan = 0;
}
}
Expand Down

0 comments on commit b5c8d97

Please sign in to comment.