gameboy superoptimizer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

21 lines
267 B

from tests.cpu.insn.helpers import *
def test_ccf():
cpu = CPU()
CCF().exec(cpu)
assert cpu.state.carry == 1
CCF().exec(cpu)
assert cpu.state.carry == 0
def test_scf():
cpu = CPU()
SCF().exec(cpu)
assert cpu.state.carry == 1