# Use a generator for the execution flow # -> PC has to be a global variable, updated by each instruction to the next val # So user can set the PC by hand and call next(run) and make the code jump! pc = 0 while True: inst = fetch_instruction(pc) pc = inst.execute()