本文整理汇总了Python中corewar.core.instrset.base.BaseInstruction.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BaseInstruction.__init__方法的具体用法?Python BaseInstruction.__init__怎么用?Python BaseInstruction.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类corewar.core.instrset.base.BaseInstruction
的用法示例。
在下文中一共展示了BaseInstruction.__init__方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_arg1, p_arg2, p_arg3, p_arg4, p_arg5, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Ll, 7, 0b1111, 0b0011, p_line)
self.m_arg1 = p_arg1
self.m_arg2 = p_arg2
self.m_arg3 = p_arg3
self.m_arg4 = p_arg4
self.m_arg5 = p_arg5
示例2: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_arg1, p_arg2, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Add, 3, 0b1000, None, p_line)
self.m_arg1 = p_arg1
self.m_arg2 = p_arg2
示例3: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_arg1, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Mode, 3, 0b1111, 0b1101, p_line)
self.m_arg1 = p_arg1
示例4: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_arg1, p_arg2, p_arg3, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Lc, 5, 0b1111, 0b0010, p_line)
self.m_arg1 = p_arg1
self.m_arg2 = p_arg2
self.m_arg3 = p_arg3
示例5: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_arg1, p_arg2, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Swp, 4, 0b1111, 0b0100, p_line)
self.m_arg1 = p_arg1
self.m_arg2 = p_arg2
示例6: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Nop, 1, 0b0001, None, p_line)
示例7: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Crash, 1, 0b0000, None, p_line)
示例8: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_arg1, p_arg2, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Not, 3, 0b0101, None, p_line)
self.m_arg1 = p_arg1
self.m_arg2 = p_arg2
示例9: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Check, 2, 0xF, 0xC, p_line)
示例10: __init__
# 需要导入模块: from corewar.core.instrset.base import BaseInstruction [as 别名]
# 或者: from corewar.core.instrset.base.BaseInstruction import __init__ [as 别名]
def __init__(self, p_arg1, p_arg2, p_line = 0):
BaseInstruction.__init__(self, Modes.Instr.Ldr, 3, 0b1101, None, p_line)
self.m_arg1 = p_arg1
self.m_arg2 = p_arg2
self.m_readData = []