Exemple #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
Exemple #2
0
 def execute(self, eu: IExecutionUnit, *args) -> bool:
     a, b = args
     eu.store(a | b)
     return True
Exemple #3
0
Fichier : jmp.py Projet : en0/emu
 def execute(self, eu: IExecutionUnit, *args) -> bool:
     value, _ = args
     eu.store(value)
     return False