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
263 B

  1. from tests.insn.helpers import *
  2. def test_ccf():
  3. cpu = CPU()
  4. CCF().exec(cpu)
  5. assert cpu.state.carry == 1
  6. CCF().exec(cpu)
  7. assert cpu.state.carry == 0
  8. def test_scf():
  9. cpu = CPU()
  10. SCF().exec(cpu)
  11. assert cpu.state.carry == 1