diff --git a/gbso/cpu/insn.py b/gbso/cpu/insn.py index 9e557ff..623da1c 100644 --- a/gbso/cpu/insn.py +++ b/gbso/cpu/insn.py @@ -1694,7 +1694,7 @@ class UNUSED(Insn): ALL_INSN_CLASSES: List[Type[Insn]] = [ - cls for cls in Insn.__subclasses__() if cls != Insn # type: ignore + cls for cls in Insn.__subclasses__() if cls not in {Insn, UNUSED} # type: ignore ] INSNS_BY_SIGNATURE: Dict[str, List[Type[Insn]]] = defaultdict(list)