From 412d9c9db6a314ce1b601abbfceedb38dcb9569b Mon Sep 17 00:00:00 2001 From: Max Regan Date: Mon, 29 Nov 2021 20:44:06 +0000 Subject: [PATCH] Deleted src/gbasm/instructions/stop.py, src/gbasm/instructions/nop.py files --- src/gbasm/instructions/nop.py | 24 ------------------------ src/gbasm/instructions/stop.py | 24 ------------------------ 2 files changed, 48 deletions(-) delete mode 100644 src/gbasm/instructions/nop.py delete mode 100644 src/gbasm/instructions/stop.py 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])