Replacing (uae_u32)(regs.pc_p - NMEM_OFFSET) with simple m68k_getpc() seems to be the correct fix.