diff --git a/src/gbasm/instructions/nop.py b/src/gbasm/instructions/nop.py deleted file mode 100644 index 3ef2922..0000000 --- a/src/gbasm/instructions/nop.py +++ /dev/null @@ -1,24 +0,0 @@ -from .Instruction import Instruction -from ..arguments import Argument -from typing import Callable, List - - -class Nop(Instruction): - def __init__(self): - argtypes = [[]] - super().__init__("NOP", argtypes) - - def num_bytes(self, arguments) -> int: - return 1 - - def to_bytes( - self, - arguments: List[Argument], - instruction_addr: int, - label_resolver: Callable[[str], int], - ) -> bytes: - - if len(arguments) != 0: - raise ValueError("Incorrect number of arguments") - - return bytes([0x00]) diff --git a/src/gbasm/instructions/stop.py b/src/gbasm/instructions/stop.py deleted file mode 100644 index d1c6fe9..0000000 --- a/src/gbasm/instructions/stop.py +++ /dev/null @@ -1,24 +0,0 @@ -from .Instruction import Instruction -from ..arguments import Argument -from typing import Callable, List - - -class Stop(Instruction): - def __init__(self): - argtypes = [[]] - super().__init__("STOP", argtypes) - - def num_bytes(self, arguments) -> int: - return 1 - - def to_bytes( - self, - arguments: List[Argument], - instruction_addr: int, - label_resolver: Callable[[str], int], - ) -> bytes: - - if len(arguments) != 0: - raise ValueError("Incorrect number of arguments") - - return bytes([0x10])