Beispiel #1
0
 def execute(self, eu: IExecutionUnit, *args) -> bool:
     port, dest = args
     if eu.has_input(port):
         value = eu.read_port(port)
         eu.store(value)
         return True
     return False
Beispiel #2
0
 def execute(self, eu: IExecutionUnit, *args) -> bool:
     a, b = args
     eu.store(a | b)
     return True
Beispiel #3
0
Datei: jmp.py Projekt: en0/emu
 def execute(self, eu: IExecutionUnit, *args) -> bool:
     value, _ = args
     eu.store(value)
     return False