Skip to content

Commit

Permalink
Add support for RRB feature 796
Browse files Browse the repository at this point in the history
  • Loading branch information
RetroCogs authored and lgblgblgb committed Jun 3, 2024
1 parent 40e4dc5 commit 5dfb9f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions targets/mega65/vic4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ static XEMU_INLINE void vic4_render_char_raster ( void )
current_pixel += (CHARGEN_X_START - border_x_left);
xcounter += (CHARGEN_X_START - border_x_left);
const int xcounter_start = xcounter;
Uint8 char_fetch_offset = 0;
Sint8 char_fetch_offset = 0;
// Chargen starts here.
while (line_char_index < REG_CHRCOUNT) {
Uint16 color_data = colour_ram[(colour_ram_current_addr++) & 0x07FFF];
Expand Down Expand Up @@ -1433,7 +1433,10 @@ static XEMU_INLINE void vic4_render_char_raster ( void )
current_pixel = pixel_raster_start + xcounter;
// ---- End of the GOTOX re-positioning functionality implementation ----
line_char_index++;
char_fetch_offset = char_value >> 13;
char_fetch_offset = (char_value >> 13) & 7;
// If ScreenRAMByte1 bit 4 is set then the char_fetch_offset should be subtracted and not added
if (char_value & (1 << 12))
char_fetch_offset = -char_fetch_offset;
if (SXA_VERTICAL_FLIP(color_data))
enable_bg_paint = 0;
if (SXA_ATTR_BOLD(color_data) && SXA_ATTR_REVERSE(color_data) && !REG_VICIII_ATTRIBS)
Expand Down

0 comments on commit 5dfb9f7

Please sign in to comment.