Sure, it should be possible to add a workaround to block the CE button. But in MAME's case, I'll keep the bug. Even though it's a really bad bug, it is accurate emulation.
PIC16F628A is not emulated. Maybe the same cpu family as this:
https://github.com/mamedev/mame/blob.../pic16c62x.cpp