in isa.py
if opcode in BRANCHING:
if opcode == "jmp":
cpu.instruction_pointer = new_location
cpu.just_jumped = True
else
pass
in cpu.py:
opcode, args = self.fetch()
self.decode_and_execute(opcode, args)
if not self.just_jumped:
# advance pointer 1 bit to read the next address
self.instruction_pointer += data_types.Word(1)
in
isa.pyin
cpu.py: