yield (operand.name, operand.value)
@classmethod
- def assemble(cls, db, opcode, arguments):
+ def assemble(cls, db, opcode, arguments=None):
raise NotImplementedError(f"{cls.__name__}.assemble")
def disassemble(self, db,
return "".join(map(str, bits))
@classmethod
- def assemble(cls, db, opcode, arguments):
+ def assemble(cls, db, opcode, arguments=None):
+ if arguments is None:
+ arguments = ()
+
record = db[opcode]
insn = cls.integer(value=0)
for operand in record.static_operands:
return "".join(map(str, bits))
@classmethod
- def assemble(cls, db, opcode, arguments):
+ def assemble(cls, db, opcode, arguments=None):
+ if arguments is None:
+ arguments = ()
+
record = db[opcode]
insn = cls.integer(value=0)