from tests.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