Wait, something actually uses decimal mode?
ETA: when fixing 65816 core bugs, please also check if the M377xx has the same problem - it's mostly but not entirely 65816 compatible (no emulation mode, 2 accumulators via a prefix opcode, and a MUL instruction) and is based on the 65816 core.