예제 #1
0
class TestRetOpcodes(unittest.TestCase):
    def setUp(self):
        self.cpu = Cpu(MMU())
        self.cpu.mmu.rom = [0] * 128
        self.cpu.mmu.load('C:/Users/cjpowell/workspace/Python/gbpy/resources/test_file.gb')

    def test_standard_return(self):
        self.cpu._op_c9()
        self.assertTrue(False)

    def test_return_if(self):
        self.cpu._op_c0()
        self.cpu._op_c8()
        self.cpu._op_d0()
        self.cpu._op_d8()
        self.assertTrue(False)

    def test_return_enable_interrupts(self):
        self.cpu._op_d9()
        self.assertTrue(False)