Deleted src/gbasm/instructions/stop.py, src/gbasm/instructions/nop.py files

This commit is contained in:
2021-11-29 20:44:06 +00:00
parent 2a1b50c83a
commit 412d9c9db6
2 changed files with 0 additions and 48 deletions

View File

@@ -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])

View File

@@ -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])