Skip to content

Commit

Permalink
[Core/CD] fixed byte access address range to Font Data registers
Browse files Browse the repository at this point in the history
  • Loading branch information
ekeeke committed Feb 26, 2022
1 parent 7fe8d95 commit 7d4ae7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cd_hw/scd.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ static unsigned int scd_read_byte(unsigned int address)
}

/* Font data */
if ((address >= 0x50) && (address <= 0x56))
if ((address >= 0x50) && (address <= 0x57))
{
/* shifted 4-bit input (xxxx00) */
uint8 bits = (scd.regs[0x4e>>1].w >> (((address & 6) ^ 6) << 1)) << 2;
Expand Down

0 comments on commit 7d4ae7d

Please sign in to comment.