Deleted src/gbasm/instructions/stop.py, src/gbasm/instructions/nop.py files
This commit is contained in:
@@ -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])
|
|
||||||
@@ -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])
|
|
||||||
Reference in New Issue
Block a user