Most MAME/MESS CPU cores have opcodes implemented on an as-encountered-in-real-software basis. That way you know when you implement an opcode that you have an immediate test case for it.