Fix block mask calculation. Fixes rendering errors in Blood.

This commit is contained in:
SarahW 2019-03-25 19:59:46 +00:00
commit 61722f120c

View file

@ -826,7 +826,7 @@ void codegen_mark_code_present_multibyte(codeblock_t *block, uint32_t start_pc,
if (block->flags & CODEBLOCK_BYTE_MASK)
{
uint32_t start_pc_masked = start_pc & PAGE_MASK_MASK;
uint32_t end_pc_masked = start_pc & PAGE_MASK_MASK;
uint32_t end_pc_masked = end_pc & PAGE_MASK_MASK;
if ((start_pc ^ block->pc) & ~0x3f) /*Starts in second page*/
{