Beispiel #1
0
 def init_register_functions():
     self.get_accumulator = register.get_accumulator_func(self.target)
     self.set_accumulator = register.set_accumulator_func(self.target)
     self.get_x_register = register.get_x_register_func(self.target)
     self.set_x_register = register.set_x_register_func(self.target)
     self.get_y_register = register.get_y_register_func(self.target)
     self.set_y_register = register.set_y_register_func(self.target)
Beispiel #2
0
    def setUp(self):
        self.__memory = memory.NesMemory(0xFFFF)
        self.__target = chip.Chip6502(self.__memory)
        self.__registers = ['accumulator', 'x_register', 'y_register']

        self.__get_accumulator = register.get_accumulator_func(self.__target)
        self.__set_accumulator = register.set_accumulator_func(self.__target)
        self.__get_x_register = register.get_x_register_func(self.__target)
        self.__set_x_register = register.set_x_register_func(self.__target)
        self.__get_y_register = register.get_y_register_func(self.__target)
        self.__set_y_register = register.set_y_register_func(self.__target)