Example #1
0
 def execute(self, cpu: Cpu):
     cpu.add(cpu.registers[self.source_register], self.number,
             self.destination_register)
Example #2
0
 def execute(self, cpu: Cpu):
     cpu.add(cpu.registers[self.register_a], cpu.registers[self.register_b], self.destination_register)